Hello,

I am trying to write a directive that can access elements generated by
ng-repeat.

So far I have the following:

*main view*

*<div>*
*...*
*  <mydir></mydir>*

*</div>*

*mydir definition*

*myApp.directive( 'mydir', function(){*
*  var def = {*
*    restrict: 'E',*
*    templateUrl: 'path-to-my-template',*
*    .....*
*  }*

* return def;*
*});*

*inside 'path-to-my-template' file*

*<div>*
*....*
*  <div class="repeatelement" ng-repeat>...</div>*
*</div>*

I am trying to access the elements generated in ng-repeat inside mydir 
directive, with no success so far.
What I try to do is sth like this:

 * var myng-repeat-elements = element.find('.repeatelement');*

But when I console log *myng-repeat-elements.length*, I get 0

Thanks



-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to