angular.js - Can a function be executed after ng-repeat?
世界只因有你2017-05-15 16:54:43
0
2
573
I add a piece of data to the arraypush, won’t the loop be executed on the pageng-repeat, I want to trigger a click event after the loop is completed, click on the last item, thats all
If you ask me, it would be more refreshing to get it done once and for all:
Usage:
Use ng-class to implement, this is my solution:
Click on the preview to see the effect directly: http://codepen.io/liekkas/pen/JdgLzJ