Search code examples
htmlcssangularjsng-tags-input

Override placeholder value in third party input


I'm using a third party tag-input and there's already a placeholder value. I would like to change the value of the placeholder. How would I do that? Right now it's "Enter a tag."

<tag-input name="tags" [(ngModel)]='tags'></tag-input>

Solution

  • Try:

    <tag-input name="tags" [(ngModel)]='tags' placeholder='My Placeholder'></tag-input>
    

    You should include what 3rd party framework you're using to help us answer, but I think I have found it: http://mbenford.github.io/ngTagsInput/documentation/api If you read the docs it specifies which attributes you can change and a description of each, the one you are looking for is placeholder.