Guest User

Untitled

a guest
May 25th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. export const landingPageRoutes: Routes = [
  2. {path: '', component: HomeComponent, canActivate: [AuthGuard],data: {roles: ['user']}},
  3. {
  4. path: 'auth', component: LandingPageComponent, children: [
  5. {path: '', pathMatch: 'full', redirectTo: 'login'},
  6. {path: '', loadChildren: 'app/features/auth/auth.module#AuthModule'},
  7. ]
  8. },
  9.  
  10. loader = TestBed.get(NgModuleFactoryLoader);
  11. loader.stubbedModules = {
  12. 'AuthModule' : AuthModule,
  13. 'landingPageModule': FakeModule
  14. };
Add Comment
Please, Sign In to add comment