AngularJS - 目标上的$ NG-repeat循环中的元素(文件)。就绪 [英] AngularJS - targeting elements inside an ng-repeat loop on $(document).ready

查看:136
本文介绍了AngularJS - 目标上的$ NG-repeat循环中的元素(文件)。就绪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为新AngularJS,我正在寻找一种方式后,的$(document)目标的 NG-重复循环内部元素。就绪被激发。他们似乎并没有准备好;然而时间。感谢您的帮助。

Being new to AngularJS, I'm looking for a way to target elements inside an ng-repeat loop after $(document).ready is fired. They don't seem to be ready at the time however. Thanks for any help.

推荐答案

博客帖子讨论听 $ viewContentLoaded 事件控制器调用你的函数,而不是使用 $(文件)。就绪

This blog post discusses listening to the $viewContentLoaded event in your controller to call your function instead of using $(document).ready:

function stuffController($scope) {
    $scope.$on('$viewContentLoaded', readyFunction);
}

这篇关于AngularJS - 目标上的$ NG-repeat循环中的元素(文件)。就绪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆