Last change
on this file since 30a465f was 30a465f, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
1.1 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 |
|
---|
13 | @NgModule({
|
---|
14 | declarations: [
|
---|
15 | AppComponent,
|
---|
16 | NavMenuComponent,
|
---|
17 | HomeComponent,
|
---|
18 | CounterComponent,
|
---|
19 | FetchDataComponent
|
---|
20 | ],
|
---|
21 | imports: [
|
---|
22 | BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),
|
---|
23 | HttpClientModule,
|
---|
24 | FormsModule,
|
---|
25 | RouterModule.forRoot([
|
---|
26 | { path: '', component: HomeComponent, pathMatch: 'full' },
|
---|
27 | { path: 'counter', component: CounterComponent },
|
---|
28 | { path: 'fetch-data', component: FetchDataComponent },
|
---|
29 | ])
|
---|
30 | ],
|
---|
31 | providers: [],
|
---|
32 | bootstrap: [AppComponent]
|
---|
33 | })
|
---|
34 | export class AppModule { }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.