在ionic1中运行项目的时候遇到:
ionic.bundle.js:25642 Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: []
检查路由发现将 $urlRouterProvider.otherwise('/home');
中的‘/home’换成‘/’就可以.
特殊的跳转需要用到以下方式:
$urlRouterProvider.otherwise(function($injector, $location){
var $state = $injector.get("$state");
$state.go('home');
});