accountant-ui/src/app.module.ts

59 lines
1.5 KiB
TypeScript
Raw Normal View History

2017-07-11 18:51:01 +02:00
// vim: set tw=80 ts=2 sw=2 sts=2:
import 'zone.js';
import 'reflect-metadata';
import { NgModule } from '@angular/core';
import { MdButtonModule, MdToolbarModule } from '@angular/material';
import { FlexLayoutModule } from '@angular/flex-layout';
2017-07-11 18:51:01 +02:00
import { BrowserModule } from '@angular/platform-browser';
2017-07-20 22:54:57 +02:00
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
2017-08-01 23:09:21 +02:00
import { RouterModule } from '@angular/router';
2017-07-11 18:51:01 +02:00
import { NgLoggerModule } from '@nsalaun/ng-logger';
import { ToastrModule } from 'ngx-toastr';
2017-07-20 22:54:57 +02:00
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
2017-08-01 23:53:57 +02:00
import { LoginModule } from './login/login.module';
2017-07-14 10:19:39 +02:00
import { AccountModule } from './accounts/account.module';
2017-07-22 11:12:30 +02:00
import { ScheduleModule } from './scheduler/schedule.module';
2017-07-27 13:57:40 +02:00
import { OperationModule } from './operations/operation.module';
2017-08-01 23:09:21 +02:00
import { AppComponent } from './app.component';
import { ApiBaseURL, LogLevel } from './app.config';
2017-07-14 10:19:39 +02:00
2017-07-11 18:51:01 +02:00
@NgModule({
imports: [
2017-07-16 10:30:53 +02:00
BrowserModule,
2017-07-20 22:54:57 +02:00
BrowserAnimationsModule,
2017-08-01 23:09:21 +02:00
RouterModule.forRoot([
{
path: '',
redirectTo: '/accounts',
pathMatch: 'full'
}
], {
enableTracing: true,
useHash: true
2017-08-01 23:14:56 +02:00
}),
FlexLayoutModule,
MdButtonModule,
MdToolbarModule,
2017-08-01 23:53:57 +02:00
LoginModule,
2017-08-01 23:14:56 +02:00
NgLoggerModule.forRoot(LogLevel),
ToastrModule.forRoot(),
NgbModule.forRoot(),
AccountModule,
ScheduleModule,
OperationModule,
2017-08-01 23:09:21 +02:00
],
declarations: [
AppComponent
],
bootstrap: [ AppComponent ]
2017-07-11 18:51:01 +02:00
})
export class AppModule {
2017-08-01 23:09:21 +02:00
constructor() {}
2017-07-11 18:51:01 +02:00
}