1 | import { BrowserModule } from '@angular/platform-browser';
|
---|
2 | import { NgModule } from '@angular/core';
|
---|
3 | import { FormsModule } from '@angular/forms';
|
---|
4 | import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
---|
5 | import { RouterModule } from '@angular/router';
|
---|
6 | import { MaterialModule } from './shared/material.module';
|
---|
7 | import { ReactiveFormsModule } from '@angular/forms';
|
---|
8 |
|
---|
9 | import { AppComponent } from './app.component';
|
---|
10 | import { NavMenuComponent } from './nav-menu/nav-menu.component';
|
---|
11 | import { HomeComponent } from './home/home.component';
|
---|
12 | import { CounterComponent } from './counter/counter.component';
|
---|
13 | import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
---|
14 | import { KoronaComponent } from './korona/korona.component';
|
---|
15 | import { AdminComponent } from './admin/admin.component';
|
---|
16 | import { DashboardComponent } from './dashboard/dashboard.component';
|
---|
17 | import { LoginComponent } from './login/login.component';
|
---|
18 |
|
---|
19 | @NgModule({
|
---|
20 | declarations: [
|
---|
21 | AppComponent,
|
---|
22 | NavMenuComponent,
|
---|
23 | HomeComponent,
|
---|
24 | CounterComponent,
|
---|
25 | KoronaComponent,
|
---|
26 | AdminComponent,
|
---|
27 | DashboardComponent,
|
---|
28 | LoginComponent
|
---|
29 | ],
|
---|
30 | imports: [
|
---|
31 | BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),
|
---|
32 | HttpClientModule,
|
---|
33 | FormsModule,
|
---|
34 | RouterModule.forRoot([
|
---|
35 | { path: '', component: HomeComponent, pathMatch: 'full' },
|
---|
36 | { path: 'mapa', component: CounterComponent },
|
---|
37 | { path: 'koronavirus', component: KoronaComponent },
|
---|
38 | { path: 'admin', component: AdminComponent },
|
---|
39 | { path: 'dashboard', component: DashboardComponent },
|
---|
40 | { path: 'login', component: LoginComponent }
|
---|
41 | ]),
|
---|
42 | BrowserAnimationsModule,
|
---|
43 | MaterialModule,
|
---|
44 | ReactiveFormsModule
|
---|
45 | ],
|
---|
46 | providers: [],
|
---|
47 | bootstrap: [AppComponent]
|
---|
48 | })
|
---|
49 | export class AppModule { }
|
---|