I have an array or image URLs that I insert into a page with ng-repeat
as <img>
elements:
<ul>
<li ng-repeat="image in images">
<img src="{{image.src}}"/>
</li>
</ul>
I would like to get dimensions (widths and heights) of those images from my controller after they've been inserted into DOM. Is there a way to iterate through my $scope.images
array and get references to the DOM nodes that represent its elements? If not, what would be the best way to do that?