angular-tutorial icon indicating copy to clipboard operation
angular-tutorial copied to clipboard

引入多个angular.js时候,angular程序会出错

Open Wscats opened this issue 8 years ago • 0 comments

比如下面这行代码,实际上引入了两个angular.jsionic.js,这样会引发致命错误,Angular程序只能引入一个angular.js,因为ionic.bundle.js本身就包含了angular.jsionic.js

<script type="text/javascript" src="js/angular.js"></script>
<script type="text/javascript" src="js/ionic.min.js"></script>
<script src="js/ionic.bundle.js"></script>

导致ng-repeat失效

<p ng-repeat="m in music"></p>

Wscats avatar Dec 23 '16 01:12 Wscats