-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.module.ts
More file actions
59 lines (56 loc) · 2.13 KB
/
Copy pathapp.module.ts
File metadata and controls
59 lines (56 loc) · 2.13 KB
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
import { NgModule } from '@angular/core';
import { FlexLayoutModule } from '@angular/flex-layout';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { MaterialModule } from '@angular/material';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { RouterModule, Routes } from '@angular/router';
import { StoreModule, ActionReducer, combineReducers } from '@ngrx/store';
import { AppComponent } from './app.component';
import {WidgetModule} from './widget/widget.module';
import { LandingPageComponent } from './shell/landing-page/landing-page.component';
import { ButtonsComponent } from './shell/buttons/buttons.component';
import { InputElementsComponent } from './shell/input-elements/input-elements.component';
import { LabelsComponent } from './shell/labels/labels.component';
import { FormComponent } from './shell/form/form.component';
import { ContactUsComponent } from './shell/contact-us/contact-us.component';
import { HeadingsComponent } from './shell/headings/headings.component';
import {treeElements} from './widget/navigation/reducer/menu.reducer';
const routes: Routes = [
{path: '', component: LandingPageComponent},
{ path: 'buttons', component: ButtonsComponent},
{ path: 'input-element', component: InputElementsComponent},
{ path: 'labels', component: LabelsComponent},
{ path: 'headings', component: HeadingsComponent},
{ path: 'forms', component: FormComponent},
{ path: 'contact-us', component: ContactUsComponent},
{ path: 'main', component: LandingPageComponent}
];
@NgModule({
declarations: [
AppComponent,
LandingPageComponent,
ButtonsComponent,
LabelsComponent,
InputElementsComponent,
FormComponent,
ContactUsComponent,
HeadingsComponent,
],
imports: [
MaterialModule,
BrowserAnimationsModule,
FlexLayoutModule,
BrowserModule,
FormsModule,
HttpModule,
RouterModule.forRoot(routes),
WidgetModule,
StoreModule.provideStore({ treeElements })
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
}