Open aleksey-shishkevich opened 7 years ago
Can I get access to route params and data within this.router$.subscribe(...)? More precisely can I be sure using next code
this.router$.subscribe(...)
constructor(private route: ActivatedRoute, ...) { this.router$.subscribe( res => { console.log(res, this.route.snapshot.params, this.route.snapshot.data); .....
this.route.snapshot.paramsand this.route.snapshot.dataare matching res?
this.route.snapshot.params
this.route.snapshot.data
res
Can I get access to route params and data within
this.router$.subscribe(...)
? More precisely can I be sure using next codethis.route.snapshot.params
andthis.route.snapshot.data
are matchingres
?