我正在处理一个大型HTML文件,其中包括许多ng-重复语句。在这条线的某个地方,我得到了一个像下面这样的错误,我不知道如何追踪是什么导致了这个问题。我从概念上理解错误的抱怨,但我不知道具体的变量是什么。
angular.js:15570错误:
在angular.js:99 at angular.js:22266 at fn (eval at angular.js:22266 (angular.js:16421),4:303) at d (angular.js:17555) at m.$文摘(angular.js:19135) at m.$apply (angular.js:19503) at
我使用的是Angular v1.3.0-beta.7。我不断地得到;
Type Error: e is not a function
在10028行。全栈跟踪;
Type Error: e is not a fuction angular.js:10028
at angular.js:14321
at e (angular.js:4426)
at angular.js:4727
(anonymous function)@angular.js:10028
(anonym
我最近开始使用角,到目前为止,我喜欢错误信息中的链接,这些链接为您提供了有关错误的令人难以置信的细节。
但是,我遇到了一个非常模糊的JavaScript错误:
TypeError: Cannot read property 'data' of undefined
at new <anonymous> (ui-grid.min.js:7)
at Object.invoke (angular.js:4709)
at R.instance (angular.js:10234)
at m (angular.js:9147)
at an
我试图在一个扩展弹出中使用库,但是我得到了一个错误。
错误:在Jb (chrome-extension://jambnlbfljcfpomlclcgphfmkjfiphkb/lib/angular.js:74:18) at k (chrome-extension://jambnlbfljcfpomlclcgphfmkjfiphkb/lib/angular.js:62:357) at Jc (chrome-extension://jambnlbfljcfpomlclcgphfmkjfiphkb/lib/angular.js:64:37) at Lc (chrome-extension://ja
下面是一个柱塞:
我正在尝试使用ui层指令创建一个类似于的数据层。
我在控制台上看到了这个错误,它告诉我指令不能解析名称空间或类型。他们应该是什么?
TypeError: google.maps[this.attrs.namespace][this.attrs.type] is not a function
at f.b.module.factory.f.createGoogleLayer (angular-google-maps.min.js:7)
at f.a as createGoogleLayer
at new f (angular-google-maps.min.js:7)
at a
我的后端使用nodejs &高速公路,前端使用角形。在我的站点中使用角转换时,控制台将显示以下消息:
Error: JSON Parse error: Property name must be a string literal
parse@[native code]
fromJson@http://localhost:3000/angular/angular.js:1321:19
defaultHttpResponseTransform@http://localhost:3000/angular/angular.js:10393:24
http://localhost:3000/an
因此,我昨天花了大约4个小时试图查找AngularJS中的一个错误。
最后我发现我的指令有一个可选的参数,我有一段代码试图给这个参数赋值,这个参数抛出了一个非常无用的角错误。
该错误类似于:
Error: [$compile:nonassign] Expression 'undefined' used with directive 'testDirective' is non-assignable!
http://errors.angularjs.org/1.3.7/$compile/nonassign?p0=undefined&p1=testDirec
嗨,我通过chrome控制台使用angularjs得到了这个错误:
SyntaxError: Unexpected token N
at Object.parse (native)
at fromJson (http://localhost:3000/assets/angular.js?body=1:803:14)
at $HttpProvider.defaults.defaults.transformResponse
http://localhost:3000/assets/angular.js?body=1:9471:18)
at http://lo
我知道这是一个常见的问题,但是我有一个项目正在移植到Angular上,而我需要在应用程序中加载的模块(即ngStorage)都没有加载。我继续在控制台日志中看到以下错误:
angular.js:68 Uncaught Error: [$injector:modulerr] Failed to instantiate module ICSPortalLoginAuth due to:
Error: [$injector:modulerr] Failed to instantiate module ngStorage due to:
Error: [$injector:nomod] Module
我有一段代码,它使用jquery显示了此代码的模式:
$('#myModal').modal({'show':true});
但是angular.js不起作用。使用angular.js的$('#myModal')的等价物是什么?
// not works for me
angular.element("#myModal")
我尝试删除"bower-components“文件夹,然后运行bower install以确保此操作正常。
在此之后,我被要求选择正确的角度版本:
首先,我不知道该选择哪个版本,我试着选择最新版本(选项3版本:angular#1.4.0),但随后我得到了一个奇怪的控制台错误:
TypeError: Cannot read property '' of undefined
at lookup (angular-animate.js:617)
at animationRunner (angular-animate.js:681)
at pe
我在我的AngularJS应用程序中使用了以下函数,但我在api调用中遇到了一个问题,因为它返回以下错误:
SyntaxError: Unexpected token {
at Object.parse (native)
at fromJson (http://localhost/app/lib/angular/angular.js:1036:14)
at $HttpProvider.defaults.defaults.transformResponse (http://localhost/app/lib/angular/angular.js:6937:18)
at http://localh
我最近更新了一个应用程序到Angular 1.5.x,现在单元测试失败了,因为默认路由的templateUrl正试图在$digest()上获取;
我一直试图在Angular changelog中找到预期行为的不同之处,但还没能找到它。
Error: Unexpected request: GET views/dashboard.html
No more request expected in .../app/bower_components/angular-mocks/angular-mocks.js (line 1404)
$httpBackend@.../app/bower_compone
我有一个程序可以根据作者对单词进行排序,这是一个数组。我在控制台中收到$parse:syntax错误;但是,程序正在执行并返回正确的结果。我不确定是什么导致了这个问题。我正在使用其他属性对单词进行排序,比如标签和书籍;然而,这个控制台错误仅由这些数组中的一些实例表示。
它看起来是这样的:
错误如下:
angular.js:13236 Error: [$parse:syntax] Syntax Error: Token 'Baggins' is an unexpected token at column 7 of the expression [Frodo Baggins] st
我得到以下错误:
TypeError: Cannot read property 'post' of undefined
at postName (http://127.0.0.1:9000/scripts/controllers/main.js:28:12)
at Scope.$scope.submit (http://127.0.0.1:9000/scripts/controllers/main.js:10:7)
at http://127.0.0.1:9000/bower_components/angular/angular.js:10348:21
我有一个单页面的应用程序,我已经和几个同事合作了一年多。这是一个使用angular-ui-router在页面之间移动的angular应用程序。有时,第一次访问设置页面时,会抛出以下异常:
Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: []
http://errors.angularjs.org/1.3.3/$rootScope/infdig?p0=10&p1=%5B%5D
at REGEX_STRING_