ng-include in meanjs stack

时间:2015-03-31 15:04:50

标签: angularjs meanjs

如果我尝试包含多个文件(例如下面的html),我在angular.js中使用ng-include会遇到问题。 它适用于一个,但没有两个文件。它适用于两个文件。 它也忽略了ng-include之后的html。

我收到此错误:

>>TypeError: Cannot read property 'insertBefore' of null
>>    at http://localhost:3000/lib/angular/angular.js:3022:13
>>    at forEach (http://localhost:3000/lib/angular/angular.js:325:18)
>>    at forEach.after (http://localhost:3000/lib/angular/angular.js:3021:5)
>>    at Object.JQLite.(anonymous function) [as after] >>>>(http://localhost:3000/lib/angular/angular.js:3110:17)
>>    at Object.$AnimateProvider.$get.enter (http://localhost:3000/lib/angular/angular.js:4230:17)
>>    at Object.angular.module.directive.factory.config.$provide.decorator.enter (http://localhost:3000/lib/angular-animate/angular-animate.js:596:21)
>>    at http://localhost:3000/lib/angular/angular.js:20024:26
>>    at publicLinkFn (http://localhost:3000/lib/angular/angular.js:6041:29)
>>    at $get.boundTranscludeFn (http://localhost:3000/lib/angular/angular.js:6166:21)
>>    at controllersBoundTransclude (http://localhost:3000/lib/angular/angular.js:6773:18)

1 个答案:

答案 0 :(得分:0)

自闭标签有问题。 The HTML parser ignores the ending /请按照this issue了解详情。