/
app.module.ts
77 lines (76 loc) · 2.33 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import { StarRatingModule } from '@angular-star-rating-lib/angular-star-rating';
import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { RouterModule } from '@angular/router';
import { NxModule } from '@nrwl/nx';
import { AppComponent } from './app.component';
import { EventBindingsComponent } from './components/event-bindings/event-bindings.component';
import { FormControlStarRatingComponent } from './components/form-control-star-rating/form-control-star-rating.component';
import { PropertyBindingsComponent } from './components/property-bindings/property-bindings.component';
import { StaticModuleModule } from './static-module/static-module.module';
import { CustomStyleComponent } from './components/custom-style/custom-style.component';
import { CustomStarsComponent } from './components/custom-stars/custom-stars.component';
const DECLARATIONS = [
AppComponent,
PropertyBindingsComponent,
EventBindingsComponent,
FormControlStarRatingComponent,
CustomStyleComponent,
CustomStarsComponent
];
@NgModule({
imports: [
BrowserModule,
NxModule.forRoot(),
ReactiveFormsModule,
StarRatingModule.forRoot(),
RouterModule.forRoot(
[
{
path: '',
redirectTo: 'form',
pathMatch: 'full'
},
{
path: 'property-bindings',
component: PropertyBindingsComponent
},
{
path: 'event-bindings',
component: EventBindingsComponent
},
{
path: 'form-control',
component: FormControlStarRatingComponent
},
{
path: 'custom-style',
component: CustomStyleComponent
},
{
path: 'custom-stars',
component: CustomStarsComponent
},
// static-config-override routes in its module
{
path: 'lazy-config-override',
loadChildren:
'apps/angular5-example/src/app/lazy-module/lazy-module.module#LazyModuleModule'
},
{
path: '**',
redirectTo: 'property-bindings'
}
],
{
useHash: true
}
),
StaticModuleModule
],
declarations: [DECLARATIONS],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {}