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