ui-router-extras
ui-router-extras copied to clipboard
ui-sref doesn't work with futurestate
I saw your commit in ui-router (https://github.com/angular-ui/ui-router/commit/656b5aab906e5749db9b5a080c6a83b95f50fd91)
I guess it should address this issue, right? Good job. :)
Partially, but one problem will remain. The link will not look clickable because there will be no HREF. also, Once the state becomes available, the HREF is not updated.
Moving to future. Not sure how to approach this bug.
In the mean time, to work around this problem you could just do something like <a ui-sref="state" href="">Go to state</a>
So instead of skipping here - https://github.com/angular-ui/ui-router/blob/master/release/angular-ui-router.js#L4035 ... just set it to #
and then on click check the attr and if its #
use the state.go
Suggest to look on decorating ui-sref or duplacate ui-sref directive due to fact that angular will run both, original and duplicate. So we can update href after futurestates loaded.