Angular Get Route Last Segment

this.activatedRoute.pathFromRoot[1].url.subscribe(val => console.log(val[0].path));
Plain Peafowl