We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f37287 commit 2c0cd21Copy full SHA for 2c0cd21
src/guide/migration/render-function-api.md
@@ -127,6 +127,7 @@ export default {
127
key: 'submit-button'
128
}
129
```
130
+
131
## 登録済みコンポーネント
132
133
### 2.x での構文
@@ -136,12 +137,14 @@ export default {
136
137
```js
138
// 2.x
139
Vue.component('button-counter', {
- data: () => ({
140
- count: 0
141
- }),
+ data() {
+ return {
142
+ count: 0
143
+ }
144
145
template: `
146
<button @click="count++">
- Clicked {{ count }} times.
147
+ Clicked {{ count }} times.
148
</button>
149
`
150
})
0 commit comments