<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<style>
[v-cloak] {
display: none;
}
</style>
</head>
<body>
<div id="app">
<h2>바로 보입니다. msg: {{msg}}</h2>
<h2 v-cloak>2초 후에 보입니다. msg: {{msg}}</h2>
</div>
<script>
setTimeout(function () {
new Vue({
el: "#app",
data: {
msg: "hello"
}
})
}, 2000);
</script>
</body>
</html>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.