https://github.com/aldy505/vue-composition-options-sample
Comparing Options API, Composition API, and Setup API
https://github.com/aldy505/vue-composition-options-sample
Last synced: about 2 months ago
JSON representation
Comparing Options API, Composition API, and Setup API
- Host: GitHub
- URL: https://github.com/aldy505/vue-composition-options-sample
- Owner: aldy505
- Created: 2021-11-14T12:45:38.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-14T12:45:58.000Z (over 3 years ago)
- Last Synced: 2025-02-07T10:49:22.480Z (3 months ago)
- Language: Vue
- Homepage: https://vue-compo-opts-sample.pages.dev
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vue Composition - Options Sample
Comparing Options API, Composition API, and Setup API.
Visit the link on the site metadata to see the live demo.
### Recommended IDE Setup
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
### Type Support For `.vue` Imports in TS
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's `.vue` type support plugin by running `Volar: Switch TS Plugin on/off` from VSCode command palette.