1
index.html
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css" />
<meta charset="utf-8" />
</head>
<body>
<div id="app">
<insert></insert>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script type="text/javascript" src="index.js"></script>
</html>
index js.
new Vue({
el:'#app',
data:{
}
})
Vue.component('insert',{
template:`<p>teste</p>`
})
ERROR:
[Vue warn]: Unknown custom element: - Did you Register the Component correctly? For recursive Components, make sure to provide the "name" option.
(found in )