Execute script/function on each iteration of ng-repeat

后端 未结 4 2134
温柔的废话
温柔的废话 2021-01-15 14:25

I am using ng-repeat on an element like this:

{{aS
4条回答
  •  臣服心动
    2021-01-15 15:19

     
        

    {{ app.Name }}

    in controller call the below function ...

    $scope.getActivationFunction = function(modelRecieve) {
      Service.getServiceDate(modelRecieve.name)
        .then(function(response) {
           var date = response.data.image;  
           $scope.app.ava_img = date;
         },
       // ...
    };
    

提交回复
热议问题