Component Page:
...
<Child>
<template #form="{ init }">
<PageForm :init="init"/>
...
Component PageForm:
...
methods: {
getData() {
// i need to call in component-grandchild of Page-component
}
}
...
Component Child (render-function):
...
h('GrandChild', {scopedSlots: {form = props => h('div', this.$scopedSlots.form(props)}}
...
Component GrandChild:
template:
...
<div>
<slot name="form" :init="init">
<div>
...
script:
...
mounted: {
// how here get method getData from Page->PageForm without Vuex?
}
...