Hi!

I have an imageonload directive which check if image is loaded or not.
And the html:
<li ng-repeat="lis in list | orderBy:propertyName track by $index">
  <img ng-src="{{lis.PIX}}" imageonload="doThis($index)">
  <span ng-if="loadicon">
    -
    -
    -

$scope.doThis = function ($index){
  console.log($index);
  $scope.loadicon = false;
};

I want to remove the loadicon, if image is loaded. My problem is that, when 
the first image is loaded, every loadicon remove in ng-repeat, not only 
loaded.
How can i access only indexed item? /($scope.loadicon[$index] = false;)/

Or this is a bad thing...

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to