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.
 
 
 
 

19 lines
585 B

  1. import { NgModule } from '@angular/core';
  2. import { Routes, RouterModule } from '@angular/router'
  3. import { ShoppingListComponent } from './shopping-list/shopping-list.component';
  4. import { HomeComponent } from './core/home/home.component';
  5. const appRoutes: Routes = [
  6. { path: '', component: HomeComponent },
  7. { path: 'recipes', loadChildren: './recipes/recipes.module#RecipesModule'},
  8. { path: 'shopping-list', component: ShoppingListComponent }
  9. ];
  10. @NgModule({
  11. imports: [RouterModule.forRoot(appRoutes)],
  12. exports: [RouterModule]
  13. })
  14. export class AppRoutingModule {
  15. }