Skip to content

Commit 41434f0

Browse files
committed
new style of props access
1 parent aba671c commit 41434f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/custom-reactivity/custom-vue-js-components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Vue.component('some-component', {
4646
};
4747
},
4848
mounted(){
49-
console.log(this.foo)
49+
console.log(this.props['foo'])
5050
}
5151
});
5252
```
@@ -60,7 +60,7 @@ The Vue.js JavaScript file needs to be imported by some kind of JavaScript packa
6060
For **Webpacker** it would look like this:
6161

6262
```javascript
63-
// app/javascript/packs/application.js
63+
// app/javascript/packs/application.js
6464
import MatestackUiCore from 'matestack-ui-core'
6565
import '../../../app/matestack/components/some_component'
6666
```

0 commit comments

Comments
 (0)