I want to disable the angular select dropdown. Actually I want restrict the access for few users. Code link:http://plnkr.co/edit/mGnpQynWKkRLBC0VEHBR?p=preview
In controller add:
$scope.isDisabled = false; // change to true to disable the multiselect
Then, the view should be (look at the disabled attribute):
<multiselect class="input-xlarge" multiple="true"
ng-model="selectedCar"
options="c.name for c in cars"
change="selected()" disabled="isDisabled"></multiselect>
Finally, add the proper logic to set the $scope.isDisabled in your controller.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With