ng-disabled not working with bootstrap buttons

前端 未结 2 1516
Happy的楠姐
Happy的楠姐 2021-01-05 14:11

I am using bootstrap.js along with angular js, my code is following-

//few lines from controller
$scope.isWaiting = true;
$scope.promise = $http.get(\"voluu         


        
2条回答
  •  星月不相逢
    2021-01-05 14:24

    You need to give an expression to ng-disabled, instead you are giving a string("true"/"false") which is always truthy and button is always disabled.

    isWaiting --> expression

    {{isWaiting}} --> value of expression

    In your case:

    ng-disabled="isWaiting"
    

提交回复
热议问题