Angularjs 带重定向的ui路由器无限循环

Angularjs 带重定向的ui路由器无限循环,angularjs,Angularjs,我试图将一些页面仅限于经过身份验证的用户,目前我正在做的是: // // Application Routes // ----------------------------------- $stateProvider .state('app', { abstract: true, templateUrl: '/modules/core/views/core.client.view.html' }) .state('app.

我试图将一些页面仅限于经过身份验证的用户,目前我正在做的是:

  // 
  // Application Routes
  // -----------------------------------   
  $stateProvider
    .state('app', {
      abstract: true,
      templateUrl: '/modules/core/views/core.client.view.html'
    })
    .state('app.home', {
      url: '/home',
      templateUrl: '/modules/core/views/home.client.view.html',
      data: { requiresLogin: true }
    });
以及:

这应该是一件简单的事情,但它不是。。。它限制了页面,但我收到的是:

`Uncaught Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
我的服务器端控制台记录了数百个垃圾信息
GET
到我的
'/sign'
页面。。。
event.preventDefault()
在这里什么都不做


没有这个无限循环,我怎么能重定向呢?

顺便说一句,我建议你用ui路由器处理身份验证:对不起,我不是那么白痴。。。我没有粘贴整个项目。。。它在另一个文件中。我不需要重建整个身份验证,我的身份验证工作正常,我只需要现在创建一个简单的重定向,如果
!身份验证。用户
…只是一个想法。。尝试在IF contidion内将“isAuthenticationRequired”设置为FALSE如果(isAuthenticationRequired){isAuthenticationRequired=FALSE;event.preventDefault();$state.go('page.signin');}如果我将其从
.run
中移出,并将其放入核心控制器中,我将不再收到错误。。。真奇怪。
`Uncaught Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!