LyubomirRadev

Untitled

Sep 4th, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  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 { FlexLayoutModule } from '@angular/flex-layout';
  13.  
  14. @NgModule({
  15. declarations: [
  16. AppComponent,
  17. NavMenuComponent,
  18. HomeComponent,
  19. CounterComponent,
  20. FetchDataComponent
  21. ],
  22. imports: [
  23. BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),
  24. HttpClientModule,
  25. FormsModule,
  26. FlexLayoutModule,
  27. RouterModule.forRoot([
  28. { path: '', component: HomeComponent, pathMatch: 'full' },
  29. { path: 'counter', component: CounterComponent },
  30. { path: 'fetch-data', component: FetchDataComponent },
  31. ])
  32. ],
  33. providers: [],
  34. bootstrap: [AppComponent]
  35. })
  36. export class AppModule { }
  37.  
Add Comment
Please, Sign In to add comment