Skip to content

Instantly share code, notes, and snippets.

@btakita btakita/App.html
Created Mar 23, 2018

Embed
What would you like to do?
<p>This is a top-level element.</p>
<Nested on:event1=event1(event) on:event2:1=event21(event)/>
<script>
import Nested from './Nested.html';
export default {
methods: {
event1(event) {
console.debug('event1')
},
event21(event) {
console.debug('event2:1')
}
},
components: {
Nested
}
};
</script>
<p>And this is a nested component.</p>
<script>
export default {
oncreate() {
this.fire('event2:1')
this.fire('event1')
console.debug('oncreate')
}
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.