Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { FormsModule } from '@angular/forms';
- import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
- import { RouterModule } from '@angular/router';
- import { AppComponent } from './app.component';
- import { NavMenuComponent } from './nav-menu/nav-menu.component';
- import { HomeComponent } from './home/home.component';
- import { CounterComponent } from './counter/counter.component';
- import { FetchDataComponent } from './fetch-data/fetch-data.component';
- import { FlexLayoutModule } from '@angular/flex-layout';
- @NgModule({
- declarations: [
- AppComponent,
- NavMenuComponent,
- HomeComponent,
- CounterComponent,
- FetchDataComponent
- ],
- imports: [
- BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),
- HttpClientModule,
- FormsModule,
- FlexLayoutModule,
- RouterModule.forRoot([
- { path: '', component: HomeComponent, pathMatch: 'full' },
- { path: 'counter', component: CounterComponent },
- { path: 'fetch-data', component: FetchDataComponent },
- ])
- ],
- providers: [],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
Add Comment
Please, Sign In to add comment