ow to import child routes to parent route in angular code example
Example: 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);
}
);