1 2 3 4 5 6 7 8 9
import { Component } from '@angular/core'; import { ROUTER_DIRECTIVES } from '@angular/router'; @Component({ selector: 'my-menu-admin', template: require('./menu-admin.component.html'), directives: [ ROUTER_DIRECTIVES ] }) export class MenuAdminComponent { }