Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait until Angular will provide a way of passing data property with router.navigate(...) method #14

Open
someApprentice opened this issue Feb 28, 2019 · 0 comments
Labels
enhancement New feature or request invalid This doesn't seem right

Comments

@someApprentice
Copy link
Owner

To set route data property while navigation need to do some trick

let route = this.router.config.find(r => r.path === redirect);

route.data['smthn'] = smthn;

This is should be done by standard Angular functionality.

angular/angular#25658

@someApprentice someApprentice added enhancement New feature or request invalid This doesn't seem right labels Feb 28, 2019
@someApprentice someApprentice changed the title Wait until Angular will provide a way of passing with router.navigate(...) method Wait until Angular will provide a way of passing data property with router.navigate(...) method Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant