Passing refs to component [closed]

杀马特。学长 韩版系。学妹 提交于 2019-12-25 18:55:30

问题


I have a vuetify modal who have a component to display inside. I want to access to these component data in another component. I try to use refs but I just have access to these refs like console.log(this.$refs)

if I try to access deeper ,like console.log(this.$refs.something), I have an Undefined.

Example :

console.log( “Adding ref” );
console.log( this.$refs );
console.log( “Article” );
let article = this.$refs.article;
console.log( “printing this.$refs.article” );
console.log( this.$refs.article );
console.log( article );

gives me

来源:https://stackoverflow.com/questions/59425679/passing-refs-to-component

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!