Hi Jake, 

Found your question :)

element.find() only looks for elements, if you really want/need to do it 
this way, include jQuery.
However, I think this the backward way of doing this!
Let me explain a bit what I mean. I'll make a step wise description.

   1. you have an array in your code.
   2. you use ng-repeat to render this array into your view
   3. you create a directive for your view
   4. in your directive you are traversing the dom to find how many times 
   you repeated?

To me, it looks like a better idea to use ```$scope.myArray.length``` , or 
am I missing something.
have a look at this: http://plnkr.co/edit/IQSvr5L5IMRRzfrXVYSR?p=preview
I just used the scope directly in your directive, there are 
better/nicer/cleaner way's to solve this. but it does get the point across?

Regards
Sander


-- 
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