Angularjs 多个角度误差

Angularjs 多个角度误差,angularjs,Angularjs,这就是我的情况: 我在HTML5模式下为URL设置了angular,然后,我使用这个.htaccess来处理URL: RewriteEngine on # Don't rewrite files or directories RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] # Rewrite everything else to index.html

这就是我的情况:

我在HTML5模式下为URL设置了angular,然后,我使用这个.htaccess来处理URL:

RewriteEngine on

# Don't rewrite files or directories
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# Rewrite everything else to index.html to allow html5 state links
RewriteRule ^ index.html [L]
当我加载像
/home
/gallery
这样的页面时,一切正常,但当我尝试加载页面
/page/name
时,整个应用程序完全冻结,控制台上出现这些错误:

RangeError: Maximum call stack size exceeded
at nodeLinkFn (http://localhost:8888/lib/angular/angular.js:6314:34)
at compositeLinkFn (http://localhost:8888/lib/angular/angular.js:5718:15)
at publicLinkFn (http://localhost:8888/lib/angular/angular.js:5627:30)
at link (http://localhost:8888/lib/angular/angular-route.js:916:7)
at nodeLinkFn (http://localhost:8888/lib/angular/angular.js:6311:13)
at compositeLinkFn (http://localhost:8888/lib/angular/angular.js:5722:15)
at publicLinkFn (http://localhost:8888/lib/angular/angular.js:5627:30)
at boundTranscludeFn (http://localhost:8888/lib/angular/angular.js:5741:21)
at controllersBoundTransclude (http://localhost:8888/lib/angular/angular.js:6332:18)
at update (http://localhost:8888/lib/angular/angular-route.js:866:25) <div ng-view="" class="ng-scope"> 
RangeError:超出最大调用堆栈大小
在诺德琳(http://localhost:8888/lib/angular/angular.js:6314:34)
在KFN(http://localhost:8888/lib/angular/angular.js:5718:15)
在publicLinkFn(http://localhost:8888/lib/angular/angular.js:5627:30)
在链接(http://localhost:8888/lib/angular/angular-route.js:916:7)
在诺德琳(http://localhost:8888/lib/angular/angular.js:6311:13)
在KFN(http://localhost:8888/lib/angular/angular.js:5722:15)
在publicLinkFn(http://localhost:8888/lib/angular/angular.js:5627:30)
在边界处(http://localhost:8888/lib/angular/angular.js:5741:21)
在控制器边界处(http://localhost:8888/lib/angular/angular.js:6332:18)
更新时(http://localhost:8888/lib/angular/angular-路线:js:866:25)
然后是这些错误的循环:

<error> VM48:146
InjectedScript.wrapObject VM48:146
(anonymous function) angular.js:9509
(anonymous function) angular.js:6950
nodeLinkFn angular.js:6314
compositeLinkFn angular.js:5722
publicLinkFn angular.js:5627
boundTranscludeFn angular.js:5741
[much more errors like those, loop]
VM48:146
InjectedScript.wrapObject VM48:146
(匿名函数)angular.js:9509
(匿名函数)angular.js:6950
nodeLinkFn angular.js:6314
compositeLinkFn angular.js:5722
publicLinkFn.js:5627
boundTranscludeFn angular.js:5741
[更多类似的错误,循环]

知道如何解决这个问题吗?

这些错误来自Angular,因此与服务器配置无关。猜测一下,我会说你有一个路由循环或类似的东西。显示您的路由配置路由配置有一些错误。你能发布你的配置块吗?