To get the current route within a non-view-model class, would the best practice be to inject the Router and use this.router.history.fragment? Or is this a no-no?
相关问题
- How to deploy a web application Aurelia in an Apac
- After bundling my aurelia app I get a: No PLATFORM
- Aurelia change state twice in one action
- aurelia-fetch-client create request headers on the
- How can I ask users to confirm before leaving the
相关文章
- Control value of input in Aurelia
- How to implement `au run --watch` task + debugging
- Aurelia: How navigate between child routes
- Deploying an aurelia.cli built app
- Aurelia: Isomorphic?
- Run Aurelia Framework without NodeJs and JSPM
- How do I set/read a query string when using the ro
- How to set up minimal Aurelia project from scratch
You could inject the router and get the current instruction. Like this: