Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get child routes using parent in angular

constructor(private _route: ActivatedRoute, private _router: Router)

this._router.events
.filter(event => event instanceof NavigationEnd)
 .subscribe(
    () => {
       console.log(this._route.snapshot.firstChild.data);
    }
);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #child #routes #parent #angular
ADD COMMENT
Topic
Name
1+8 =