ng-disabled not working with bootstrap buttons

前端 未结 2 1514
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:30

    If you are using ng-disabled an expression must be used that returns a truthy value. An example of an expression is isWaiting. {{isWaiting}}will instead output an expression. So instead use ng-disabled="isWaiting".

    
    

    ngDisabled documentation

    Expressions documentation

提交回复
热议问题