Suppose if i want to show image2 on click image1, how to do that in angularjs.I have tried using ng-click twice, but it does not work.
<div class="image-container" ng-if="item.image_url != ''">
<img ng-src="{{API_URL+item.image_url}}"
ng-click="templatesCtrl.showPrediction1($event,item1)"
ng-click="templatesCtrl.showPrediction2($event,item2)"
alt="cax-image">
<div class="show-me" style="display: none;">
<img ng-src="{{API_URL+item.image_url}}" />
</div>
Here i used two function for ng-click .