Closed yuanchuan closed 7 years ago
sample.vue file
<template> <input v-model="names | myfilter" /> </template> <script> module.exports = { data() { return { names: ['bus', 'bike', 'car'] } }, filters: { myfilter: { read(val) { return val }, write(val) { return val } } } } </script>
Command:
$ browserify -t vueify sample.vue
Error:
SyntaxError: Assigning to rvalue (1:289) while parsing file: ....
Two-way filters have been removed in Vue 2.0. See the migration guide.
Didn't noticed that. Thanks
sample.vue file
Command:
Error: