diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 359f845..7c20811 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -5,14 +5,9 @@ import { HttpClientModule } from '@angular/common/http'; import { AppComponent } from './app.component'; import { AppRoutingModule } from './app-routing.module'; -import { AuthGuard } from './auth/auth-guard.service'; -import { AuthModule } from './auth/auth.module'; -import { AuthService } from './auth/auth.service'; -import { DataStorageService } from './shared/data-storage.service'; -import { RecipeService } from './recipes/recipe.service'; import { SharedModule } from './shared/shared.module'; import { ShoppingListModule } from './shopping-list/shopping-list.module'; -import { ShoppingListService } from './shopping-list/shopping-list.service'; +import { AuthModule } from './auth/auth.module'; import { CoreModule } from './core/core.module'; @NgModule({ @@ -29,12 +24,6 @@ import { CoreModule } from './core/core.module'; AuthModule, CoreModule ], - providers: [ - ShoppingListService, - RecipeService, - DataStorageService, - AuthService, - AuthGuard], bootstrap: [AppComponent] }) export class AppModule { } diff --git a/src/app/core/core.module.ts b/src/app/core/core.module.ts index 4c5ae81..7592006 100644 --- a/src/app/core/core.module.ts +++ b/src/app/core/core.module.ts @@ -4,6 +4,10 @@ import { HeaderComponent } from "./header/header.component"; import { HomeComponent } from "./home/home.component"; import { SharedModule } from "../shared/shared.module"; import { AppRoutingModule } from "../app-routing.module"; +import { ShoppingListService } from "../shopping-list/shopping-list.service"; +import { RecipeService } from "../recipes/recipe.service"; +import { DataStorageService } from "../shared/data-storage.service"; +import { AuthService } from "../auth/auth.service"; @NgModule({ declarations: [ @@ -17,6 +21,12 @@ import { AppRoutingModule } from "../app-routing.module"; exports: [ AppRoutingModule, HeaderComponent - ] + ], + providers: [ + ShoppingListService, + RecipeService, + DataStorageService, + AuthService + ], }) export class CoreModule {} \ No newline at end of file diff --git a/src/app/core/header/header.component.html b/src/app/core/header/header.component.html index 6775324..a83d6b9 100644 --- a/src/app/core/header/header.component.html +++ b/src/app/core/header/header.component.html @@ -10,12 +10,12 @@
  • Shopping List