84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
Angular.js初学者
我用的slideshow是http://www.malsup.com/jquery/cycle2/
但因为slide item是从$http来的,理论上应该等item被渲染到页面上才激活cycle。但并不知道如何处理$scope已经完成数据绑定后的事件。
slideshow中jquery cycle是比较好用的,所以想使用它。请问该如何实现?或者有没有另外的方法?
一般是封装到directive里面, 在link里scope.$watch, 然后在$timeout(fn,0)里面激活(注意第2个参数是0)
一般是封装到directive里面, 在link里scope.$watch, 然后在$timeout(fn,0)里面激活(注意第2个参数是0)