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 })
}
}
Source:stackexchange.com