如何在ng-click上使用loading.gif交换默认图像,然后在加载时显示所选图像?
HTML -partial
$scope.currentImg= "default img";
$scope.SETcurrentImg = function(...){
currentImg="loading.gif";
//when image is loaded display below img
// ???
currentImg="some selected img";
}
JS -pseudo代码
details.gsub(' Command id =', '')
#=> "1. 22 Time = 2:30 <br> 2. 23 Time = 3:30"