Can I use bind properties inside the layout
stefandevo opened this issue · 3 comments
stefandevo commented
Hi
I am struggling with binding a value inside the layout component.
Is this suppose to work or is it just layout?
I have a Auth-layout where I have a <p>{{ title }}</p>
I am trying to set this title
from the page that is using the layout.
Is this possible?
ktquez commented
Can you show us how your layout is?
ktquez commented
I didn't understand, is that your question?
https://github.com/ktquez/vue-extend-layout/blob/master/example/src/layouts/page.vue#L4
stefandevo commented
Sorry for late response.
The idea was more to set a property like title
in the layout component, and then set the value in the page that is using the value. (I am using Typescript)