Angularjs在ng-click上添加加载微调器

时间:2015-10-08 05:48:23

标签: angularjs spinner angularjs-ng-click

如何在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"

0 个答案:

没有答案