Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ngOnInit() {
- this.router.events
- .filter(event => event instanceof NavigationEnd)
- .map(() => this.activatedRoute)
- .subscribe((activeRoute) => {
- console.log('NavigationEnd:', activeRoute);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement