Reload image without refreshing the page
by yahoop A
HTML
<div ng-controller="MyCtrl1">
<div ng-repeat="img in images"> <img ng-src="{{img.image}}?_={{generatingNewDate}}"></div>
</div>
JavaScript
var myApp = angular.module('myApp',[]);
myApp.controller('MyCtrl1', function($scope) {
$scope.generatingNewDate = new Date().getTime();
$scope.images = [
{id:1,image: 'http://yahoop88.weebly.com/uploads/1/3/9/0/13908104/892247_orig.jpg' },
{ id:2,image: 'http://yahoop88.weebly.com/uploads/1/3/9/0/13908104/6434454_orig.jpg'},
{ id:3,image: 'http://yahoop88.weebly.com/uploads/1/3/9/0/13908104/2439055_orig.jpg' },
{ id:4,image: 'http://yahoop88.weebly.com/uploads/1/3/9/0/13908104/8847251_orig.png'},
{ id:5,image: 'http://yahoop88.weebly.com/uploads/1/3/9/0/13908104/9526318.jpg' },
{id:6,image: 'http://yahoop88.weebly.com/uploads/1/3/9/0/13908104/9994432.jpg'}
];
});