I want the button to be disabled if the text is not present in the text box. Here is what I tried:
<textarea ng-model="shipment_ids"></textarea>
<button ng-click="do_something" ng-disabled="shipment_ids.length"></button>
However, the button is turned on no matter what.
source
share