Closed PierreReliquet closed 8 years ago
+1 This solves the problem for me. @christopherthielen worth a look. Thanks! Maybe the files in the release dir shouldn't be included in the pr?
Thank you for this PR.
I understand that this stops the error from appearing in the console. However, this PR only masks a problem. An onEnter/Exit/etc hook that requires resolve data will still be broken. That is why I haven't merged this PR.
Also, the release files should not be included in the PR.
Should be fixed in e401776b480f8fd29fca049aa9f42df0732f6443
Please try 0.1.1 version
Fixes #258
Under some weird circumstances on the application the locals of a state are null triggering an exception inside ui-router-extras. A workaround was to wrap some call to
$state.go
in a$timeout
but this is not very elegant.I have added a test that demonstrates that even with a null locals the code is smooth.