This lesson is for members. Join us?
Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!
Vue Composition API Setup Method
In this lesson, we learn the basics of using the Vue Composition API setup method. setup
is executed before the component is created, once the props are resolved, and serves as the entry point for composition APIs.
In order to expose things from the setup method and to the other component options (data, methods, computed, etc) as well as to the template, we need to return them from the setup method.
Links