Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10 $digetst() iterations reached #2

Open
bfsiumm opened this issue Jul 29, 2016 · 2 comments
Open

10 $digetst() iterations reached #2

bfsiumm opened this issue Jul 29, 2016 · 2 comments

Comments

@bfsiumm
Copy link

bfsiumm commented Jul 29, 2016

Hi simon,

First of all, thanks so much for this tutorial.
Just want to ask how to get this error resolved.
When we first run the application we get this Error:
text Error : " Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: [] "

Thanks

@Sunzhuokai
Copy link

how to resolve?

@Sunzhuokai
Copy link

In your app.js routing section, instead of this:
$urlRouterProvider.otherwise('/app/')

use the function version:

$urlRouterProvider.otherwise(function ($injector, $location) {
var $state = $injector.get("$state");
$state.go("app.home");
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants