title: Vue : Limit characters in text area input, truncate filter?
body: <p><code>&lt;textarea name="" id="" cols="30" rows="10" v-model="$store.state.user.giftMessage | truncate 150"&gt;&lt;/textarea&gt;</code>
  I tried creating a custom filter :</p>
  
  <pre><code>filters: {
      truncate(text, stop, clamp) {
          return text.slice(0, stop) + (stop &lt; text.length ? clamp || '...' : '')
      }
  }
  </code></pre>
  
  <p>but that didn't broke the build when I put it on the v-model for the input...</p>
  
  <p>Any advice?</p>