-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
feat: refactor Vue code snippets to use <script setup>
#3070
Comments
Hi, thank you for submitting this issue! I've just merged a PR that refactors the snippets for some of the components to use I spoke with the team about this, and please note that for now, we are only interested in refactoring snippets that only have a Also, at this time, we would like to keep the |
that PR looks awesome! 👀 You're absolutely right, refactoring to target if you need any help or additional contributions for this PR, count me in! I'd be more than happy to lend a hand and collaborate with you on making this even better. Just let me know how I can assist. |
Here is a list of all the docs sections that we would like to rewrite to use Components:
Other:
Feel free to pick up one of these components to refactor to Notes:
|
Describe Problem
Hello Ionic team! 😄
Most, if not all, of the current Vue code snippets are written in a verbose way.
Describe Preferred Solution
Vue 3 offers
<script setup>
a compile-time syntactic sugar which allows for more succinct code with less boilerplate. The above piece of code could be simplified as follows.Describe Alternatives
It is also possible to re-arrange the order of the tags to make the code snippet more readable.
Additional Information
I would like to offer my help to refactor said code snippets in case this feature request is approved 😄
The text was updated successfully, but these errors were encountered: