A child component can also pass parameters to an upper-layer component through the bound event. The following example describes how to pass parameters through the custom event:
```html
<!-- comp.hml -->
<divclass="item">
<textclass="text-style"onclick="childClicked">Click to View Hidden Text</text>
this.$emit('eventType1',{text:'Received parameters from the child component.'});
this.showObj=!this.showObj;
},
}
```
In the following example, the child component passes the **text** parameter to the parent component, and the parent component obtains the parameter through **e.detail**: