[Vuejs]-Call function and send parameter with composition API vuejs 3

1👍

return from a setup() function only exposes a component’s properties to its own template. To expose properties to a parent component you have to use the expose function

export default {
  setup(props, { expose }) {
    const getCalls = () => { ... }

    expose({ getCalls })
  }
}
👤yoduh

Leave a comment