devdactic-ionic_login icon indicating copy to clipboard operation
devdactic-ionic_login copied to clipboard

10 $digetst() iterations reached

Open bfsiumm opened this issue 8 years ago • 2 comments

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

bfsiumm avatar Jul 29 '16 08:07 bfsiumm

how to resolve?

Sunzhuokai avatar Aug 25 '16 07:08 Sunzhuokai

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"); });

Sunzhuokai avatar Aug 25 '16 08:08 Sunzhuokai