ktquez / vue-extend-layout

Default layout or create custom layouts for the pages of your Vue.js SPA (Multiple layouts)
https://vue-layouts2.surge.sh/
MIT License
131 stars 16 forks source link

Can I use bind properties inside the layout #19

Closed stefandevo closed 6 years ago

stefandevo commented 6 years ago

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 6 years ago

Can you show us how your layout is?

ktquez commented 6 years ago

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 6 years ago

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)