[30a465f] | 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';
|
---|
[785b8bd] | 6 | import { MaterialModule } from './shared/material.module';
|
---|
| 7 | import { ReactiveFormsModule } from '@angular/forms';
|
---|
[30a465f] | 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';
|
---|
[ec6ac45] | 13 | import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
---|
| 14 | import { KoronaComponent } from './korona/korona.component';
|
---|
[785b8bd] | 15 | import { AdminComponent } from './admin/admin.component';
|
---|
| 16 | import { DashboardComponent } from './dashboard/dashboard.component';
|
---|
| 17 | import { LoginComponent } from './login/login.component';
|
---|
[30a465f] | 18 |
|
---|
| 19 | @NgModule({
|
---|
| 20 | declarations: [
|
---|
| 21 | AppComponent,
|
---|
| 22 | NavMenuComponent,
|
---|
| 23 | HomeComponent,
|
---|
| 24 | CounterComponent,
|
---|
[785b8bd] | 25 | KoronaComponent,
|
---|
| 26 | AdminComponent,
|
---|
| 27 | DashboardComponent,
|
---|
| 28 | LoginComponent
|
---|
[30a465f] | 29 | ],
|
---|
| 30 | imports: [
|
---|
| 31 | BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),
|
---|
| 32 | HttpClientModule,
|
---|
| 33 | FormsModule,
|
---|
| 34 | RouterModule.forRoot([
|
---|
| 35 | { path: '', component: HomeComponent, pathMatch: 'full' },
|
---|
[ec6ac45] | 36 | { path: 'mapa', component: CounterComponent },
|
---|
[785b8bd] | 37 | { path: 'koronavirus', component: KoronaComponent },
|
---|
| 38 | { path: 'admin', component: AdminComponent },
|
---|
| 39 | { path: 'dashboard', component: DashboardComponent },
|
---|
| 40 | { path: 'login', component: LoginComponent }
|
---|
[ec6ac45] | 41 | ]),
|
---|
[785b8bd] | 42 | BrowserAnimationsModule,
|
---|
| 43 | MaterialModule,
|
---|
| 44 | ReactiveFormsModule
|
---|
[30a465f] | 45 | ],
|
---|
| 46 | providers: [],
|
---|
| 47 | bootstrap: [AppComponent]
|
---|
| 48 | })
|
---|
| 49 | export class AppModule { }
|
---|