扫码关注官方订阅号
我在一个页面的controller中要根据拿到的数据来对某p的class进行操作,但是这时候dom还没渲染完,这个p是repeat出来的,此时拿到的只是空的nodelist,想问大家怎样才能知道angular渲染结束并且顺利执行我的代码?
认证0级讲师
ng-repeat-end-watch
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
ng-repeat-end-watch