我想将this(元素) - abutton传递给我controller的 by ng-disable。这是我的HTML:
<button type ="button" class = "btn btn-default" ng-click= "open()" ng-disabled = "checkRowId(this)">
</button>
我的controller:
$scope.checkRowId = function(btn){
console.log(btn); //undefined
}
原木鞋undefined,有没有办法通过一个element类似的button通道ng-disabled?