我有基于服务的商店列表,一个用户点击一个接受按钮应用按钮我需要禁用该按钮,列出我已经使用过ng-repeat.how我可以禁用点击应用按钮。我可以写入应用函数用于禁用特定点击的service.once我应用它应该始终禁用。
.controller('CouponsCtrl', ['$scope', '$http', '$window', '$location', '$ionicPopup',
function($scope, $http, $window, $location, $ionicPopup) {
$http.get('***').success(function(data,response) {
$scope.services = data;
});
$scope.apply = function(_id) {
console.log(_id);
}
}
])

<div class="list card" data-ng-repeat="service in services | filter:query ">
<i style="margin-left:40px;color:white;font-size:14px:"> {{service.Store_Name}} </i>
<i style="margin-left:40px;color:white;font-size:14px:"> {{service.Store_Address}} </i>
<button ng-click="apply(service._id)" >apply</button>
</div>
&#13;