Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const routes = [
- {
- path: 'zoo',
- loadChildren: './zoo/zoo.module#ZooModule',
- data: { title: 'Zoo' }
- }
- ]
- @Component({
- template: `
- <ul>
- <ng-container *ngFor="let route of routes">
- <li *featureToggle="route.path">
- {{route.data.title}}
- </li>
- </ng-container>
- </ul>
- `
- })
- export class HeaderNav {
- routes = routes;
- }
Add Comment
Please, Sign In to add comment