# Event Parameter
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:
```
Click here to view the hidden text.
hello world
```
```
// comp.js
export default {
childClicked () {
this.$emit('eventType1', {text: 'Receive the 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**:
```
Parent component: {{text}}
```
```
// xxx.js
export default {
data: {
text: 'Start',
},
textClicked (e) {
this.text = e.detail.text;
},
}
```