I need to add logic as witch image to show
here is some code i think it would work:
view:
<img ng-src="{{checkImage(data.image)}}" />
js
function checkImage(img){
if(img==1){
return "image/1.jpg";
}
}
I need to add logic as witch image to show
here is some code i think it would work:
view:
<img ng-src="{{checkImage(data.image)}}" />
js
function checkImage(img){
if(img==1){
return "image/1.jpg";
}
}