0π
I am not sure what issue you are facing but Itβs working fine. Here is the demo :
Vue.createApp({
data: () => ({
someValueFromVueObject: {
url: 'https:\\google.com',
height: 100
}
})
}).mount('#app')
<script src="https://unpkg.com/vue@3"></script>
<div id="app">
{{someValueFromVueObject.url}}
{{someValueFromVueObject.height}}<br>
<iframe :src="someValueFromVueObject.url" :height="someValueFromVueObject.height"></iframe>
</div>
Please check this code snippet and let me know what challenge you are facing.
- [Vuejs]-Vuex store variable is used before it is filled in store with data from API
- [Vuejs]-What can i do to make my laravel and vue run on the same localhost / domain
Source:stackexchange.com