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
{{ message }}
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
While building your Angular application with this module, you may encounter this error:
Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: []
This happens when your default view (main if you are following our Angular Guide) is using the waitForUser option. The cause is this upstream bug: angular-ui/ui-router#600
Workaround:
Instead of this:
$urlRouterProvider
.otherwise('/');
Use this:
$urlRouterProvider.otherwise( function($injector, $location) {
var $state = $injector.get("$state");
$state.go("main"); //redirect to a 404 page
});
If you are using our Angular Guide to create a project from scratch, that code will go into client/app.js
The text was updated successfully, but these errors were encountered:
Yes, it was eating my brain. Thanks a lot @robertjd . Would you please also explain why this was happening with simple $urlRouterProvider.other('/') call and not with the alternative ?
While building your Angular application with this module, you may encounter this error:
This happens when your default view (
main
if you are following our Angular Guide) is using thewaitForUser
option. The cause is this upstream bug: angular-ui/ui-router#600Workaround:
Instead of this:
Use this:
If you are using our Angular Guide to create a project from scratch, that code will go into
client/app.js
The text was updated successfully, but these errors were encountered: