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
I'm attempting to upgrade ui-router to angular-ui-router#1.0.0-alpha.1 with angular#1.4.7. Some of our links are throwing errors at the following line:
christopherthielen
changed the title
Cannot read property 'resolveContext' of undefined
1.0.0-alpha.1: Cannot read property 'resolveContext' of undefined
Mar 30, 2016
That code is fetching all the locals (resolve data) for a view (controller)
As far as I can tell, we couldn't find the right object in the "to path" (which is the path of nested states from the root state down to the transition's target state).
This could be caused by a number of things. Can you drop a breakpoint there (in Chrome, use the "pause on exceptions" feature) and report back what is the value of:
I'm attempting to upgrade ui-router to
angular-ui-router#1.0.0-alpha.1
withangular#1.4.7
. Some of our links are throwing errors at the following line:Best I can tell, routes that have a
resolve
option to them ($stateProvider.state('foo',{resolve:{/*...*/}})
) seem to throw this.Any ideas why
common_1.find
would returnundefined
when this route used to work inangular-ui-router#0.2.17
?The text was updated successfully, but these errors were encountered: