angular router get last part of url code example
Example: get current url last part angular
constructor(private route: ActivatedRoute){}
ngOnInit() {
this.route.parent.snapshot.url[2].path;
}
constructor(private route: ActivatedRoute){}
ngOnInit() {
this.route.parent.snapshot.url[2].path;
}