Skip to content

Commit

Permalink
fix: onSave handler in demo project closes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Oct 19, 2018
1 parent 9b7c23c commit 8c1dd81
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 12 additions & 0 deletions demo/App.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
<template>
<VuseBuilder @saved="onSave" />
</template>

<script>
export default {
name: 'App',
methods: {
onSave (vuse) {
vuse.export('preview');
vuse.export('pwa');
}
}
}
</script>
6 changes: 0 additions & 6 deletions demo/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,5 @@ Vue.use(Vuse, {

new Vue({
el: '#app',
methods: {
onSave (vuse) {
vuse.export('preview');
vuse.export('pwa');
}
},
render: h => h(App)
});

0 comments on commit 8c1dd81

Please sign in to comment.