[Vuejs]-Vue.js:465 [Vue warn]: Failed to generate render function:

0👍

In Vue 2.0 (unlike 1.0) you pass arguments to a filter like this:

<p>{{ message | cal(10, 20, 10) }}</p>

https://v2.vuejs.org/v2/guide/syntax.html#Filters

And the other issue is the filter in the v-model, Vue 2.0 doesn’t support them as is, you can implement them but it’s a little bit complicated (https://v2.vuejs.org/v2/guide/migration.html#Two-Way-Filters-replaced).

Leave a comment