[Vuejs]-Vue 3 – cannot bind any attribute

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.

Leave a comment