Answers for "get child routes using parent in angular"

0

get child routes using parent in angular

constructor(private _route: ActivatedRoute, private _router: Router)

this._router.events
.filter(event => event instanceof NavigationEnd)
 .subscribe(
    () => {
       console.log(this._route.snapshot.firstChild.data);
    }
);
Posted by: Guest on April-28-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language