Dapatkan rute anak menggunakan orang tua dalam sudut
constructor(private _route: ActivatedRoute, private _router: Router)
this._router.events
.filter(event => event instanceof NavigationEnd)
.subscribe(
() => {
console.log(this._route.snapshot.firstChild.data);
}
);
Disgusted Dugong