Error after using ngAnimate: TypeError: Cannot read property 'ng-scope' and 'col-sm-6' of undefined
Error after using ngAnimate: TypeError: Cannot read property 'ng-scope' and 'col-sm-6' of undefined
我已将 angular 动画添加到我的项目中。我只把它放在我的 index.html 和 app.js 上。我错过了什么吗?提前致谢
Index.html
<script src="http://code.angularjs.org/1.2.1/angular-animate.js"></script>
App.js
angular.module('portfolio', ['ui.bootstrap','ui.router', 'ngAnimate', 'service', 'ctrl'])
控制台:错误
TypeError: Cannot read property 'ng-scope' of undefined
at lookup (angular-animate.js:294)
at performAnimation (angular-animate.js:563)
at angular-animate.js:358
at m.$digest (angular.js:16215)
at m.$apply (angular.js:16429)
at g (angular.js:10823)
at t (angular.js:11021)
at XMLHttpRequest.w.onload (angular.js:10962)(anonymous function) @ angular.js:12793(anonymous function) @ angular.js:9526m.$digest @ angular.js:16217m.$apply @ angular.js:16429g @ angular.js:10823t @ angular.js:11021w.onload @ angular.js:10962
angular.js:12793
TypeError: Cannot read property 'col-sm-6' of undefined
at lookup (angular-animate.js:294)
at performAnimation (angular-animate.js:563)
at angular-animate.js:358
at m.$digest (angular.js:16215)
at m.$apply (angular.js:16429)
at g (angular.js:10823)
at t (angular.js:11021)
at XMLHttpRequest.w.onload (angular.js:10962)
这个问题看起来和这个很相似post
该建议似乎指向 angular 和 angular 动画模块
之间的不匹配
我遇到了同样的错误,解决方案是 http.所以我升级了版本,我用这个 link 代替。希望对您有所帮助
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.3/angular-animate.js"></script>
我已将 angular 动画添加到我的项目中。我只把它放在我的 index.html 和 app.js 上。我错过了什么吗?提前致谢
Index.html
<script src="http://code.angularjs.org/1.2.1/angular-animate.js"></script>
App.js
angular.module('portfolio', ['ui.bootstrap','ui.router', 'ngAnimate', 'service', 'ctrl'])
控制台:错误
TypeError: Cannot read property 'ng-scope' of undefined
at lookup (angular-animate.js:294)
at performAnimation (angular-animate.js:563)
at angular-animate.js:358
at m.$digest (angular.js:16215)
at m.$apply (angular.js:16429)
at g (angular.js:10823)
at t (angular.js:11021)
at XMLHttpRequest.w.onload (angular.js:10962)(anonymous function) @ angular.js:12793(anonymous function) @ angular.js:9526m.$digest @ angular.js:16217m.$apply @ angular.js:16429g @ angular.js:10823t @ angular.js:11021w.onload @ angular.js:10962
angular.js:12793
TypeError: Cannot read property 'col-sm-6' of undefined
at lookup (angular-animate.js:294)
at performAnimation (angular-animate.js:563)
at angular-animate.js:358
at m.$digest (angular.js:16215)
at m.$apply (angular.js:16429)
at g (angular.js:10823)
at t (angular.js:11021)
at XMLHttpRequest.w.onload (angular.js:10962)
这个问题看起来和这个很相似post
我遇到了同样的错误,解决方案是 http.所以我升级了版本,我用这个 link 代替。希望对您有所帮助
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.3/angular-animate.js"></script>