UNPKG

py-web-vue

Version:

Generic client application to work with a PyWebVue server

18 lines (17 loc) 268 B
export default { name: 'Trigger', methods: { emit(topic, event) { this.$emit(topic, event); }, }, created() { this.emit('created'); }, mounted() { this.emit('mounted'); }, beforeUnmount() { this.emit('beforeUnmount'); }, };