Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Composition API #10

Merged
merged 5 commits into from
Apr 23, 2024
Merged

Conversation

Carifio24
Copy link
Member

@Carifio24 Carifio24 commented Apr 17, 2024

This PR updates the template to use the Vue's Composition API, building off of the changes in cosmicds/vue-toolkit#6. As a result of those changes, the main component is now no longer built as a class - we're now using a <script setup> tag. This also serves as an example for how to write a component in the Composition API style. The template is simple and doesn't have any watchers, but it does give examples of reactive data, computed properties, a mounted hook, and some use of composables.

@Carifio24 Carifio24 marked this pull request as draft April 17, 2024 15:24
@Carifio24
Copy link
Member Author

Just a note that CI will fail until we actually publish the needed toolkit update.

@Carifio24 Carifio24 marked this pull request as ready for review April 23, 2024 20:05
@Carifio24 Carifio24 merged commit 3651552 into cosmicds:main Apr 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant