-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Options API Reference #73
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
Conversation
Co-Authored-By: Jinjiang <[email protected]>
Co-Authored-By: Jinjiang <[email protected]>
@NataliaTepluhina Saw that you marked it as WIP so I converted the PR to Draft so it didn't accidentally get merged before you are ready. Missing GitLab's feature of detecting WIP and automatically doing this for me already. 😆 |
|
||
- **See also:** [Provide / Inject](../guide/component-provide-inject.html) | ||
|
||
## setup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still not sure whether setup belongs here or not. Technically, it's still a component option so it should be at least listed in Options
but I am open for a discussion how detailed this description should be and what should we move to Composition API reference
section
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be in both, ideally. The API definition tends to come up first in search, and setup
is likely to be something folks are searching for to learn a lot right now. The Guide offers something above the API, because it tends to be more human-legible and friendly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small nits, but generally great job moving things over. Thanks for updating the todos along the way.
|
||
- **See also:** [Provide / Inject](../guide/component-provide-inject.html) | ||
|
||
## setup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be in both, ideally. The API definition tends to come up first in search, and setup
is likely to be something folks are searching for to learn a lot right now. The Guide offers something above the API, because it tends to be more human-legible and friendly.
commit 5509287 Author: Natalia Tepluhina <[email protected]> Date: Mon May 4 06:57:13 2020 +0300 Options API Reference (#73) * feat: started with Global Config API * feat: finished global config * feat: added component global api * feat: added directives API * feat: added mixin API * feat: add mount API * feat: added unmount and use * Update src/api/global-api.md Co-Authored-By: Jinjiang <[email protected]> * Update src/api/global-config.md Co-Authored-By: Jinjiang <[email protected]> * fixL changed global -> application * fix: fixed types for config * fix: fixed types for API * feat: added a note about native HTML tags * feat: added options data chapter * feat: finished options data * feat: added options-DOM * Added emits to data * feat: added lifecycle hooks * feat: added renderTracked and renderTriggered * feat: added options assets * feat: added options composition * feat: added misc to options * fix: TODO cleanup * fix: changed data description Co-authored-by: Jinjiang <[email protected]> commit b31cbfc Author: Damian Dulisz <[email protected]> Date: Sun May 3 16:18:35 2020 +0200 [Rough Draft] Composition-API: Introduction (#67) * Add Composition-API: Introduction draft * Fix image links * Add styling for Tips and Warnings. Fix missing `js` syntax flag * Apply suggestions from An Phan Co-Authored-By: Phan An <[email protected]> * Apply suggestions from code review Co-Authored-By: Phan An <[email protected]> Co-Authored-By: Rahul Kadyan <[email protected]> * Convert tabs to spaces Co-authored-by: Phan An <[email protected]> Co-authored-by: Rahul Kadyan <[email protected]> commit 19c7285 Author: NataliaTepluhina <[email protected]> Date: Sun May 3 17:18:17 2020 +0300 fix: fixed slots inconsistence
* feat: started with Global Config API * feat: finished global config * feat: added component global api * feat: added directives API * feat: added mixin API * feat: add mount API * feat: added unmount and use * Update src/api/global-api.md Co-Authored-By: Jinjiang <[email protected]> * Update src/api/global-config.md Co-Authored-By: Jinjiang <[email protected]> * fixL changed global -> application * fix: fixed types for config * fix: fixed types for API * feat: added a note about native HTML tags * feat: added options data chapter * feat: finished options data * feat: added options-DOM * Added emits to data * feat: added lifecycle hooks * feat: added renderTracked and renderTriggered * feat: added options assets * feat: added options composition * feat: added misc to options * fix: TODO cleanup * fix: changed data description * Added instance properties * Squashed commit of the following: commit 5509287 Author: Natalia Tepluhina <[email protected]> Date: Mon May 4 06:57:13 2020 +0300 Options API Reference (#73) * feat: started with Global Config API * feat: finished global config * feat: added component global api * feat: added directives API * feat: added mixin API * feat: add mount API * feat: added unmount and use * Update src/api/global-api.md Co-Authored-By: Jinjiang <[email protected]> * Update src/api/global-config.md Co-Authored-By: Jinjiang <[email protected]> * fixL changed global -> application * fix: fixed types for config * fix: fixed types for API * feat: added a note about native HTML tags * feat: added options data chapter * feat: finished options data * feat: added options-DOM * Added emits to data * feat: added lifecycle hooks * feat: added renderTracked and renderTriggered * feat: added options assets * feat: added options composition * feat: added misc to options * fix: TODO cleanup * fix: changed data description Co-authored-by: Jinjiang <[email protected]> commit b31cbfc Author: Damian Dulisz <[email protected]> Date: Sun May 3 16:18:35 2020 +0200 [Rough Draft] Composition-API: Introduction (#67) * Add Composition-API: Introduction draft * Fix image links * Add styling for Tips and Warnings. Fix missing `js` syntax flag * Apply suggestions from An Phan Co-Authored-By: Phan An <[email protected]> * Apply suggestions from code review Co-Authored-By: Phan An <[email protected]> Co-Authored-By: Rahul Kadyan <[email protected]> * Convert tabs to spaces Co-authored-by: Phan An <[email protected]> Co-authored-by: Rahul Kadyan <[email protected]> commit 19c7285 Author: NataliaTepluhina <[email protected]> Date: Sun May 3 17:18:17 2020 +0300 fix: fixed slots inconsistence * Revert "Squashed commit of the following:" This reverts commit b62c049. Co-authored-by: Jinjiang <[email protected]>
translate custom directives
This PR migrates an
Options
section of the API reference. In addition, I've done a little cleanup of TODOs