Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Fails to build when using custom two-way filter #167

Closed
yuanchuan opened this issue Dec 21, 2016 · 2 comments
Closed

Fails to build when using custom two-way filter #167

yuanchuan opened this issue Dec 21, 2016 · 2 comments

Comments

@yuanchuan
Copy link

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:
....
@mgrinspan
Copy link
Contributor

Two-way filters have been removed in Vue 2.0. See the migration guide.

@yuanchuan
Copy link
Author

Didn't noticed that. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants