Angular2 - Extending router and Observable
问题 In angular2 rc2 with the router module v 3.0.0.6alpha, I extend the RouterOulet to check if the user is logged in before accessing the admin. So this is the code : @Directive({ selector: 'router-outlet' }) export class LoggedInRouterOutlet extends RouterOutlet { publicRoutes: Array<string>; private parentOutletMap: RouterOutletMap; private userService: UserService; private parentRouter: Router; constructor( parentOutletMap: RouterOutletMap, _location: ViewContainerRef, @Attribute('name') name