angular.js - angularJS: Execute js after data is loaded
巴扎黑
巴扎黑 2017-05-15 17:01:01
0
2
536

Use

<p id="goodlist">
   <p ng-repeat="good in goods">{{good}}</p>
</p>

After the data cycle is completed, I use js to obtain the height of p, but the obtained value is always wrong. How to solve it?

巴扎黑
巴扎黑

reply all(2)
仅有的幸福

Put the code for getting p height inside $timeout() and try it

巴扎黑

http://stackoverflow.com/questions/13471129/ng-repeat-finish-event

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template