diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index b0df9f8..4617c72 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -2,9 +2,11 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router' import { ShoppingListComponent } from './shopping-list/shopping-list.component'; +import { HomeComponent } from './home/home.component'; const appRoutes: Routes = [ - { path: '', redirectTo: '/recipes', pathMatch: 'full' }, + { path: '', component: HomeComponent }, + { path: 'recipes', loadChildren: './recipes/recipes.module#RecipesModule'}, { path: 'shopping-list', component: ShoppingListComponent } ]; diff --git a/src/app/app.module.ts b/src/app/app.module.ts index e35e46b..90ab355 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -4,29 +4,29 @@ import { HttpModule } from '@angular/http'; import { HttpClientModule } from '@angular/common/http'; import { AppComponent } from './app.component'; -import { HeaderComponent } from './header/header.component'; -import { ShoppingListService } from './shopping-list/shopping-list.service'; import { AppRoutingModule } from './app-routing.module'; -import { RecipeService } from './recipes/recipe.service'; -import { DataStorageService } from './shared/data-storage.service'; -import { AuthService } from './auth/auth.service'; import { AuthGuard } from './auth/auth-guard.service'; -import { RecipesModule } from './recipes/recipes.module'; +import { AuthModule } from './auth/auth.module'; +import { AuthService } from './auth/auth.service'; +import { DataStorageService } from './shared/data-storage.service'; +import { HeaderComponent } from './header/header.component'; +import { RecipeService } from './recipes/recipe.service'; import { SharedModule } from './shared/shared.module'; import { ShoppingListModule } from './shopping-list/shopping-list.module'; -import { AuthModule } from './auth/auth.module'; +import { ShoppingListService } from './shopping-list/shopping-list.service'; +import { HomeComponent } from './home/home.component'; @NgModule({ declarations: [ AppComponent, - HeaderComponent + HeaderComponent, + HomeComponent ], imports: [ BrowserModule, HttpClientModule, HttpModule, AppRoutingModule, - RecipesModule, SharedModule, ShoppingListModule, AuthModule diff --git a/src/app/home/home.component.css b/src/app/home/home.component.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html new file mode 100644 index 0000000..9522849 --- /dev/null +++ b/src/app/home/home.component.html @@ -0,0 +1 @@ +