Last active
June 19, 2017 14:50
-
-
Save acacha/f58cb6c0341ba21e8ea1616d3b3556a0 to your computer and use it in GitHub Desktop.
example_using_watcher_vue_to_fire_events.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
watch: { | |
removed: function () { | |
removed ? this.$emmit('removed') : this.$emmit('unremoved') | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment