Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular get route last segment

this.activatedRoute.pathFromRoot[1].url.subscribe(val => console.log(val[0].path));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angular #route #segment
ADD COMMENT
Topic
Name
5+4 =