We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8db0c20 commit e28c53eCopy full SHA for e28c53e
docs/guides/common-tips.md
@@ -75,18 +75,18 @@ You can emit a custom event from a child component by accessing the instance.
75
import ChildComponent from './ChildComponent'
76
77
export default {
78
- name: 'ParentComponent',
79
- components: { ChildComponent },
80
- data() {
81
- return {
82
- emitted: false
83
- }
84
- },
85
- methods: {
86
- onCustom () {
87
- this.emitted = true
88
+ name: 'ParentComponent',
+ components: { ChildComponent },
+ data() {
+ return {
+ emitted: false
89
}
+ },
+ methods: {
+ onCustom () {
+ this.emitted = true
+ }
90
91
</script>
92
```
0 commit comments