Guest User

Untitled

a guest
Nov 24th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. class MyComponent {
  2. constructor(public router: Router, spinner: Spinner) {
  3. router.events.subscribe(e => {
  4. if (e instanceof ChildActivationStart) {
  5. spinner.start(e.route);
  6. } else if (e instanceof ChildActivationEnd) {
  7. spinner.end(e.route);
  8. }
  9. });
  10. }
  11. }
Add Comment
Please, Sign In to add comment