Sean Condon | ff85fbe | 2019-03-16 14:28:46 +0000 | [diff] [blame] | 1 | import { BrowserModule } from '@angular/platform-browser'; |
| 2 | import { NgModule } from '@angular/core'; |
| 3 | |
| 4 | import { AppComponent } from './app.component'; |
| 5 | import {ConsoleLoggerService, Gui2FwLibModule, LogService} from 'gui2-fw-lib'; |
| 6 | import {Gui2TopoLibModule} from 'gui2-topo-lib'; |
| 7 | import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; |
| 8 | import {RouterModule, Routes} from '@angular/router'; |
| 9 | import {HttpClientModule} from '@angular/common/http'; |
| 10 | |
| 11 | const appRoutes: Routes = [ |
| 12 | { path: '**', component: AppComponent } |
Sean Condon | 9de2135 | 2019-04-06 19:22:27 +0100 | [diff] [blame] | 13 | ]; |
Sean Condon | ff85fbe | 2019-03-16 14:28:46 +0000 | [diff] [blame] | 14 | |
| 15 | @NgModule({ |
| 16 | declarations: [ |
| 17 | AppComponent |
| 18 | ], |
| 19 | imports: [ |
| 20 | RouterModule.forRoot(appRoutes), |
| 21 | BrowserModule, |
| 22 | BrowserAnimationsModule, |
| 23 | Gui2FwLibModule, |
| 24 | Gui2TopoLibModule, |
| 25 | HttpClientModule |
| 26 | ], |
| 27 | providers: [ |
| 28 | { provide: LogService, useClass: ConsoleLoggerService }, |
| 29 | { provide: 'Window', useValue: window } |
| 30 | ], |
| 31 | bootstrap: [AppComponent] |
| 32 | }) |
| 33 | export class AppModule { } |