according to this topic Calling a parent window function from an iframe
Say that iframe can send data back to parent window.
Now I implement it using vuejs and my code is
<v-card>
   <iframe :src="url" style="width:100%; height:100vh; border:0px;"></iframe>
</v-card>
and in iframe url I put the script like
$('#uploadbtn').bind("click",function(){
     window.parent.postMessage({
       'func': 'parentFunc',
        'message': 'Message text from iframe.'
     }, "*");
});
when user click button it will send message back to parent (vue component).
My question is how can I write code in VueJS side to get message from iframe?
Thank you
 
    