I have a sub-navigation in my page that displays some subviews below a common main view. I would like to pass an object to the subviews through the
Looks like syntax has been changed. Below works for me ~Angular4.0.0
HTML (Pass Route Parameters)
- New Job
Component
constructor(private route: ActivatedRoute) { }
ngOnInit() {
this.getTemplate();
this.sub = this.route.params.subscribe(params => { this.id = params['mode'];
console.log("Routing Mode", this.id);
});
}