+
```
@@ -224,11 +225,12 @@ The ES6 syntax is supported.
};
```
+
+
## Obtaining the ViewModel
The following shows files of the root page:
-
```
@@ -250,8 +252,9 @@ export default {
}
```
-Customize the parent component.
+
+Customize the parent component.
```
@@ -288,7 +291,7 @@ Customize the child component.
Child component clicked
- Hello child component
+ Hello child component
```
@@ -297,11 +300,11 @@ Customize the child component.
// child.js
export default {
data: {
- show: false,
+ isShow: false,
text: 'I am the child component!',
},
childClicked () {
- this.show = !this.show;
+ this.isShow = !this.isShow;
console.info('child component get parent text');
console.info('${this.$parent().text}');
console.info('child component get root text');
@@ -309,3 +312,5 @@ export default {
},
}
```
+
+
\ No newline at end of file