Publishing TagInput component to npm
#8 Wrapping TagInput component using the template from last tip
This is the repository and this is the code that matters
Lines 21 and 24 are where the magic happens. The input array is converted to string and bound to the input, and the input string is converted back to array before $emit it.
You can link in you own project using one of those urls:
yarn add v-tag-input
The final component has only 1KB (gziped). Pretty lite for a tag input, hum?