Set ReadOnly for ng2-tag-input in angular

152 Views Asked by At

I have implemented tag input. I need to set tag-input as readonly.

<tag-input  disabled  readonly="true" 
    (onSelect)="onSelect($event)" secondaryPlaceholder="">
</tag-input>

The above code is not working, [readonly]="true" also not working. Thanks in Advance.

1

There are 1 best solutions below

0
On

Try this in tag-input field:

[readonly]="true"