You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{inject}from'aurelia';import{IRouter}from'aurelia-direct-router';
@inject(IRouter)publicclassSomeClass{constructor(privaterouter: IRouter){}attached(){returnthis.router.load('someRoute');//Does not load anything//comment out one or the otherthis.router.load('someRoute');//Loads the routereturn;}}
🤔 Expected Behavior
I would expect you to be able to have return on the same line.
😯 Current Behavior
returnthis.router.load('someRoute');//Does not load anythingthis.router.load('someRoute');//Loads the routereturn;
💁 Possible Solution
returnthis.router.load('someRoute');//Should Workreturnawaitthis.router.load('someRoute');//Should Work
🌍 Your Environment
Software
Version(s)
Aurelia
latest v2
Language
English
Browser
Chrome
Bundler
Webpack
Operating System
W10
NPM/Node/Yarn
Npm
The text was updated successfully, but these errors were encountered:
🐛 Bug Report
Returning the
router.load
function ends up not loading the route.The full controller
🤔 Expected Behavior
I would expect you to be able to have return on the same line.
😯 Current Behavior
💁 Possible Solution
🌍 Your Environment
The text was updated successfully, but these errors were encountered: