documentation fixes
This commit is contained in:
parent
e35fc79f09
commit
0ed3d20c4c
3 changed files with 8 additions and 4 deletions
|
|
@ -125,7 +125,7 @@ State can also be accessed via the `this` keyword, which is available to all lif
|
|||
|
||||
```javascript
|
||||
var ComponentUsingThis = {
|
||||
oninit: function() {
|
||||
oninit: function(vnode) {
|
||||
this.data = vnode.attrs.text
|
||||
},
|
||||
view: function(vnode) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue