Skip to content

Vue is not work by use “<iframe>” #4019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
K-walker opened this issue Oct 24, 2016 · 3 comments
Closed

Vue is not work by use “<iframe>” #4019

K-walker opened this issue Oct 24, 2016 · 3 comments

Comments

@K-walker
Copy link

K-walker commented Oct 24, 2016

My code is as follows:
<body>
<div class="main">
<span>{{message}}</span>
</div>
<div class="common-pop-box" v-if="showPop">
<iframe width="100%" height="100%" frameborder="0" />
</div>
</body>
<script>
new Vue({
el: ".main" ,
data:{
message:"hello world",
showPop:true
}
})
</script>
Because I used the iframe tag,The value of the span tag is not turned into “hello world” .
where is the problem?

@yanzhenzeng
Copy link

yanzhenzeng commented Oct 24, 2016

you should use /firame> to close the iframe tag,and if you do this, vue will be work

@zhengyange
Copy link

@yanzhenzeng you are right!

@K-walker
Copy link
Author

thanks . it's work @yanzhenzeng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants