Skip to content

Commit 7e41f6d

Browse files
committed
Formatting and fixed typos
1 parent 8c9b662 commit 7e41f6d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const Component = defineComponent({
9090
### Class Components
9191
[Vue Class Components](https://class-component.vuejs.org/) offers an alternative class-style syntax for Vue components which integrates well with TypeScript.
9292

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).
9494

9595

9696
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/
149149
150150
## Props
151151

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.
153153

154154
```vue
155155
import Vue, { PropType } from 'vue'
@@ -174,7 +174,6 @@ export default Vue.extend({
174174
}
175175
});
176176
</script>
177-
178177
```
179178

180179
With vue-class-components and vue-property-decorator, you can use the `Prop` decorator:
@@ -194,7 +193,6 @@ export default class InfoCard extends Vue {
194193
@Prop({ required: true }) readonly info: PersonInfo;
195194
}
196195
</script>
197-
198196
```
199197

200198
# Other Vue + TypeScript resources

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy