Angular 2 RouterPreloader with aspnet core template #905

Closed
opened 2025-08-09 17:18:07 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @seven1986 on 3/24/2017

Could you give me an example? I have tried many times , some code like below, but still can not find the right way .

export const routes: Routes = [
  { path: '', redirectTo: 'contact', pathMatch: 'full'},
  { path: 'crisis', loadChildren: 'app/crisis/crisis.module#CrisisModule' },
  { path: 'heroes', loadChildren: 'app/hero/hero.module.3#HeroModule' }
];
*Originally created by @seven1986 on 3/24/2017* ### Could you give me an example? I have tried many times , some code like below, but still can not find the right way . ``` typescript export const routes: Routes = [ { path: '', redirectTo: 'contact', pathMatch: 'full'}, { path: 'crisis', loadChildren: 'app/crisis/crisis.module#CrisisModule' }, { path: 'heroes', loadChildren: 'app/hero/hero.module.3#HeroModule' } ]; ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#905
No description provided.