michaelnguyen547
9 months ago
43
3
Vue

<div id"app"> does not render with Vue

Posted 9 months ago by michaelnguyen547

i am starting to use Vue and hit a breakpoint already.

my html look like this

<head>
        <script src="https://cdn.jsdelivr.net/npm/vue"></script>

<script src="/js/vuelidate-0.7.4/vuelidate.min.js"></script>
<script src="/js/vuelidate-0.7.4/validators.min.js"></script>
</head>
<body>
// other html tags
<div id="app">
<form ...>

</form>
</div>

<script>
new Vue({
    el: '#app'
})
</script>
</body>

The part from <div id="app"> ... </div> does not render when I set el: '#app, I dont know why? remove the el will have the <div id="app"> section show again.

Please sign in or create an account to participate in this conversation.