Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. import { NgModule } from '@angular/core'
  2. import { CommonModule } from '@angular/common'
  3. import { RouterModule } from '@angular/router'
  4. import { ReactiveFormsModule } from '@angular/forms'
  5. import { AuthService } from './services/auth.service'
  6. import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http'
  7. import { UserService } from './services/user.service'
  8. import { HttpInterceptorService } from './interceptors/http-interceptor.service'
  9. import { BodyService } from './services/body.service'
  10.  
  11. @NgModule({
  12. imports: [
  13. CommonModule,
  14. RouterModule,
  15. ReactiveFormsModule,
  16. HttpClientModule,
  17. ],
  18. exports: [
  19. CommonModule,
  20. RouterModule,
  21. ReactiveFormsModule,
  22. HttpClientModule,
  23. ],
  24. providers: [
  25. AuthService,
  26. UserService,
  27. BodyService,
  28. {
  29. provide : HTTP_INTERCEPTORS,
  30. useClass: HttpInterceptorService,
  31. multi : true,
  32. },
  33. ],
  34. declarations: []
  35. })
  36. export class SharedModule { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement