1👍
Use props
in your Layout.vue
Layout.vue
export default {
props: ['headerTitle'],
// your other stuff here
}
News.vue
<layout :headerTitle="header_title"></layout>
- [Vuejs]-How do I send values from golang to vue js (server to client)?
- [Vuejs]-Dynamic input value related to another values
Source:stackexchange.com