// The Child Component Code
export const MyOtherComponent = {
template: `
{{ headline }}
you have clicked the button {{ clicks }} times
`,
data () {
return {
headline: 'Hello from my other Vue component',
clicks: 0
}
},
methods: {
btnClicked () {
this.clicks++;
}
}
};