10BC0 fix unit test example code · vuejs/v2.vuejs.org@0e2674b · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e2674b

Browse files
committed
fix unit test example code
1 parent 754b050 commit 0e2674b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

source/guide/application.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,14 @@ app.currentView = 'page1'
6666
``` js
6767
// my-component.js
6868
module.exports = {
69+
template: '<span>{{msg}}</span>',
70+
data: function () {
71+
return {
72+
msg: 'hello!'
73+
}
74+
}
6975
created: function () {
70-
this.message = 'hello!'
76+
console.log('my-component created!')
7177
}
7278
}
7379
```

0 commit comments

Comments
 (0)
0