Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyComponent {
- constructor(public router: Router, spinner: Spinner) {
- router.events.subscribe(e => {
- if (e instanceof ChildActivationStart) {
- spinner.start(e.route);
- } else if (e instanceof ChildActivationEnd) {
- spinner.end(e.route);
- }
- });
- }
- }
Add Comment
Please, Sign In to add comment