The Jared Wilcurt 3 days ago committed by GitHub
parent ef09e7c710
commit 1e8aa0edf1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/data/roadmaps/vue/content/options-api@PPUU3Rb73aCpT4zcyvlJE.md

@ -1,6 +1,6 @@
# Options API # Options API
Vue offers many approaches for how to write components, including the Options API. It is the only API that is available in all versions of Vue. It's primary focus is on providing a consistent and clean organized aproach to writing component logic. Each part of a component's logic is given a dedicated section (data, methods, computed, props, life-cycle hooks, etc). By putting the logic in the correct section it has access to those framework features automatically. With the official Vue ESLint plugin the order of the sections can be enforced across all components allowing developers to predicatably locate any part of the component, even if they've never looked at the file before. Vue offers many approaches for how to write components, including the Options API. It is the only API that is available in all versions of Vue. Its primary focus is on providing a consistent, clean, and organized aproach to writing component logic. Each part of a component's logic is given a dedicated section (data, methods, computed, props, life-cycle hooks, etc). By putting the logic in the correct section it has access to the features of the framework automatically. With the official Vue ESLint plugin the order of these sections can be enforced across all components allowing developers to predicatably locate any part of the component, even if they've never looked at the file before.
Visit the following resources to learn more: Visit the following resources to learn more:

Loading…
Cancel
Save