Search code examples
angularjsng-tags-input

ng-tags-input, how to disable user input?


I'm looking for how to the disable user input for this directive directive, what I want to do is the controller to insert values on certain events happening in the view.

I've went through the API and I didn't really find how to do this. I've even tried using the disabled attribute

<tags-input ng-model="filterTags" disabled></tags-input>

What happened was the style turned gray, but I could still manually insert values.


Solution

  • check this please,

    <input ng-disabled="true">