You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Vue Class Components](https://class-component.vuejs.org/) offers an alternative class-style syntax for Vue components which integrates well with TypeScript.
92
92
93
-
To have consistent support for decorators in your Vue components, it's also recomended to install [vue-property-decorator](https://github.com/kaorun343/vue-property-decorator).
93
+
To have consistent support for decorators in your Vue components, it's also recommended to install [vue-property-decorator](https://github.com/kaorun343/vue-property-decorator).
94
94
95
95
96
96
To get started with both libraries in your existing Vue project, run:
@@ -149,7 +149,7 @@ See the [full guide for Vue Class Components](https://class-component.vuejs.org/
149
149
150
150
## Props
151
151
152
-
`PropType` can be used to annote props with a particular object shape.
152
+
`PropType` can be used to annotate props with a particular object shape.
153
153
154
154
```vue
155
155
import Vue, { PropType } from 'vue'
@@ -174,7 +174,6 @@ export default Vue.extend({
174
174
}
175
175
});
176
176
</script>
177
-
178
177
```
179
178
180
179
With vue-class-components and vue-property-decorator, you can use the `Prop` decorator:
0 commit comments