Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
export const routes: Routes = [
{ path: '', redirectTo: 'items', pathMatch: 'full' },
{
path: 'items',
loadChildren: 'app/+items/items.module#ItemsModule',
data: { preload: true, delay: false },
},
{
path: 'item',
loadChildren: 'app/+item-details/item-details.module#ItemDetailsModule',
data: { preload: true, delay: true },
},
{
path: 'admin',
loadChildren: 'app/+admin/admin.module#AdminModule',
data: { preload: false, delay: true },
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.