我想将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
?