1<!--
2 From the child component, you want to do an "emit".
3 This tells the parent to run the callback specified
4 in the child component reference. Psuedo code:
5-->
6<parent>
7 <child @send="receive"></child>
8
9 methods: {
10 receive(childData) {
11 console.log(childData); // "Hello World"
12 }
13 }
14</parent>
15
16
17<child>
18 <button @click="send">Click Me</button>
19
20 methods: {
21 send() {
22 Vue.$emit('send', 'Hello World');
23 }
24 }
25</child>