diff --git a/docs/guides/common-tips.md b/docs/guides/common-tips.md index d7be5165a..d6e746541 100644 --- a/docs/guides/common-tips.md +++ b/docs/guides/common-tips.md @@ -75,18 +75,18 @@ You can emit a custom event from a child component by accessing the instance. import ChildComponent from './ChildComponent' export default { - name: 'ParentComponent', - components: { ChildComponent }, - data() { - return { - emitted: false - } - }, - methods: { - onCustom () { - this.emitted = true - } + name: 'ParentComponent', + components: { ChildComponent }, + data() { + return { + emitted: false } + }, + methods: { + onCustom () { + this.emitted = true + } + } } ```