-
Notifications
You must be signed in to change notification settings - Fork 308
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
fix: pass route extras in routerLink #2905
Conversation
Signed-off-by: Akshat Patel <akshat@live.ca>
✅ Deploy Preview for carbon-components-angular ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: Akshat Patel <akshat@live.ca>
…lar router Signed-off-by: Akshat Patel <akshat@live.ca>
Co-authored-by: Andrea Paolucci <35496522+Licen-it@users.noreply.github.com>
🎉 This PR is included in version 5.26.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hey, I am a bit late here with feedback as this MR has been merged already. I think the current implementation effectively breaks the idea of the original change. The idea was to rely on the functionality of the directives solely to do navigation and navigation state checks, skipping any custom JS. This would allow for correct cmd + click behavior and so on. |
@klaascuvelier yeah it would make sense....i didn't think about the cmd + click, but the only pain would be that then passed into the template they wouldn't be a nice since object, but each property would need to be specified separately. |
Thanks for you reply @Licen-it. |
Well I was mainly thinking about future proof solution, so that even if a later angular version is changing it will work fine...something to easily support different versions of angular without breaking |
Closes #2904
Changelog
Changed
navigate
function on anchor link click which will pass in routeExtras.