get current url last part angular 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;
}