angular-redux / router

Keep your Angular2+ router state in Redux
MIT License
28 stars 7 forks source link

Question: Using the router with ActivatedRoute snapshot #9

Open aleksey-shishkevich opened 7 years ago

aleksey-shishkevich commented 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

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?