if(user.click) {
disableComp1();
disableComp2();
showComp5();
showComp4();
}
websocket$.subscribe( () => {
showComp3();
})
if(url === 'is-super-man') {
assert('something');
}
import { Router, NavigationStart,
Event as NavigationEvent }
from '@angular/router';
constructor(router:Router) {
router.events.forEach((event: NavigationEvent) => {
if(event instanceof NavigationStart) {
}
// NavigationEnd
// NavigationCancel
// NavigationError
// RoutesRecognized
});
}