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