-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.module.ts
27 lines (26 loc) · 1.04 KB
/
app.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { NgModule } from '@angular/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { RouterModule as ngRouterModule } from '@angular/router';
import { CoreModule, HOOK_NAVIGATOR_NODES, BootstrapComponent, RouterModule, CommonModule, PluginsModule } from '@c8y/ngx-components';
import { MDEComponent } from './mde-widget/mde.component';
import { BDEComponent } from './bde-widget/bde.component';
import { NavigationFactory } from './navigation.factory';
@NgModule({
imports: [
BrowserAnimationsModule,
RouterModule.forRoot(),
ngRouterModule.forRoot(
[{ path: 'bde', component: BDEComponent }, { path: 'mde', component: MDEComponent }], // hook the route here
{ enableTracing: false, useHash: true }
),
CoreModule.forRoot(),
PluginsModule.forRoot(),
CommonModule
],
declarations: [BDEComponent, MDEComponent],
providers: [
{ provide: HOOK_NAVIGATOR_NODES, useClass: NavigationFactory, multi: true },
],
bootstrap: [BootstrapComponent]
})
export class AppModule {}