You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
1.0 KiB

  1. import { NgModule } from "@angular/core";
  2. import { HTTP_INTERCEPTORS } from "@angular/common/http";
  3. import { HeaderComponent } from "./header/header.component";
  4. import { HomeComponent } from "./home/home.component";
  5. import { SharedModule } from "../shared/shared.module";
  6. import { AppRoutingModule } from "../app-routing.module";
  7. import { RecipeService } from "../recipes/recipe.service";
  8. import { DataStorageService } from "../shared/data-storage.service";
  9. import { AuthInterceptor } from "../shared/auth.interceptor";
  10. import { LoggingInterceptor } from "../shared/logging.interceptor";
  11. @NgModule({
  12. declarations: [
  13. HeaderComponent,
  14. HomeComponent
  15. ],
  16. imports: [
  17. SharedModule,
  18. AppRoutingModule
  19. ],
  20. exports: [
  21. AppRoutingModule,
  22. HeaderComponent
  23. ],
  24. providers: [
  25. RecipeService,
  26. DataStorageService,
  27. {provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true},
  28. {provide: HTTP_INTERCEPTORS, useClass: LoggingInterceptor, multi: true}
  29. ],
  30. })
  31. export class CoreModule {}