Wscats / angular-tutorial

:rabbit:Some of the angular tutorial - 《Angular学习笔记》
387 stars 125 forks source link

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

Open Wscats opened 7 years ago

Wscats commented 7 years ago

比如下面这行代码,实际上引入了两个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>