Last change
on this file since fad8134 was ec6ac45, checked in by Mile Jankuloski <mile.jankuloski@…>, 4 years ago |
Adjusments
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Line | |
---|
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 |
|
---|
7 | import { AppComponent } from './app.component';
|
---|
8 | import { NavMenuComponent } from './nav-menu/nav-menu.component';
|
---|
9 | import { HomeComponent } from './home/home.component';
|
---|
10 | import { CounterComponent } from './counter/counter.component';
|
---|
11 | import { FetchDataComponent } from './fetch-data/fetch-data.component';
|
---|
12 | import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
---|
13 | import { KoronaComponent } from './korona/korona.component';
|
---|
14 |
|
---|
15 | @NgModule({
|
---|
16 | declarations: [
|
---|
17 | AppComponent,
|
---|
18 | NavMenuComponent,
|
---|
19 | HomeComponent,
|
---|
20 | CounterComponent,
|
---|
21 | FetchDataComponent,
|
---|
22 | KoronaComponent
|
---|
23 | ],
|
---|
24 | imports: [
|
---|
25 | BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),
|
---|
26 | HttpClientModule,
|
---|
27 | FormsModule,
|
---|
28 | RouterModule.forRoot([
|
---|
29 | { path: '', component: HomeComponent, pathMatch: 'full' },
|
---|
30 | { path: 'mapa', component: CounterComponent },
|
---|
31 | { path: 'fetch-data', component: FetchDataComponent },
|
---|
32 | { path: 'koronavirus', component: KoronaComponent }
|
---|
33 | ]),
|
---|
34 | BrowserAnimationsModule
|
---|
35 | ],
|
---|
36 | providers: [],
|
---|
37 | bootstrap: [AppComponent]
|
---|
38 | })
|
---|
39 | export class AppModule { }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.