AngularJS和jsFiddle无法正常工作 - 得到奇怪的错误

时间:2013-07-06 15:25:07

标签: angularjs jsfiddle

所以我试图让我的jsFiddle工作,但我得到了这个错误以及其他一些错误:

Error in event handler for 'undefined': Error calling method on NPObject. Error: Error calling method on NPObject.
    at chrome-extension://mkfokfffehpeedafpekjeddnmnjhmcmk/docstart.js:1:2117
    at Event.dispatchToListener (event_bindings:356:21)
    at Event.dispatch_ (event_bindings:342:27)
    at Event.dispatch (event_bindings:362:17)
    at miscellaneous_bindings:165:24
    at Event.dispatchToListener (event_bindings:356:21)
    at Event.dispatch_ (event_bindings:342:27)
    at Event.dispatch (event_bindings:362:17)
    at Object.chromeHidden.Port.dispatchOnMessage (miscellaneous_bindings:253:22) 

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

我不确定导致NPObject错误的原因(请参阅this answer是否有帮助),但是当使用带有硬编码字符串的ng-include时,您需要引用它:

<div ng-repeat="question in questions" ng-include="'question'"></div>

Fiddle