Options API
Also written: data(), methods
Vue's older way of writing components with `data()` and `methods` instead of `<script setup>`. You'll see it in older code and tutorials.
Also written: data(), methods
Vue's older way of writing components with `data()` and `methods` instead of `<script setup>`. You'll see it in older code and tutorials.