Resolve var of child not being called in 0.2.15, it does in 0.2.14
See http://jsbin.com/wocudotoqu/1/edit?html,js,console. In 0.2.14 it returns I am state:sub, in 0.2.15 I am state:master.
Not sure what the expected behaviour is but just to let you know that the behaviour changed in the latest release. It was a breaking change for our app.
Dewey,
I think this is indeed a bug (although I'm unsure what would have caused this change). However, if you move your resolve to the state instead of the view, the proper resolve is injected in 0.2.15.
.state('main.sub', {
url: '/sub',
resolve: {
myVar: function() {
return 'I am state:sub';
}
}
views: {
'content@': {
controller: 'SubCtrl'
}
}
Can you check if my pull request (#1991) fix this? I had the same issue.
Any progress on this? I'm having issues upgrading my apps due to this.
Move your resolves from the views to the state. I don't think we ever explicitly supported resolves on a view, did we @nateabele? I don't believe 1.0 implements resolves on a view.
A long, long time ago we did. It inadvertently got dropped in a point release, but no one seemed to notice. I think hardly anyone ever used it.
I used it, just because it made sense to resolve data "to" the view where it is needed and keep it away from views that need other data ...
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This does not mean that the issue is invalid. Valid issues may be reopened.
Thank you for your contributions.