Update options-api.md

pull/8606/head
The Jared Wilcurt 3 days ago committed by GitHub
parent d7d3a2a089
commit ef09e7c710
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
We use Options API in a Vue application to write and define different components. With this API, we can use options such as data, methods, and mounted. To state it simply, Options API is an old way to structure a Vue.JS application. Due to some limitations in this API, Composition API was introduced in Vue 3.
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.
Visit the following resources to learn more:

Loading…
Cancel
Save