Skip to content

Instantly share code, notes, and snippets.

@adrianfaciu
Created November 29, 2017 20:12
Show Gist options
  • Save adrianfaciu/78070c4409702e6e4c947150c00774d9 to your computer and use it in GitHub Desktop.
Save adrianfaciu/78070c4409702e6e4c947150c00774d9 to your computer and use it in GitHub Desktop.
export const routes: Routes = [
{ path: '', redirectTo: 'items', pathMatch: 'full' },
{
path: 'items',
loadChildren: 'app/+items/items.module#ItemsModule',
},
{
path: 'item',
loadChildren: 'app/+item-details/item-details.module#ItemDetailsModule',
},
{
path: 'admin',
loadChildren: 'app/+admin/admin.module#AdminModule',
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment