Here is my Vue.js component code that I am having trouble with. Despite its simplicity, it does not load correctly:
Vue.component('my-component', {
template: '<div>{{ msg }}</div>',
data: {
msg: 'hello'
}
});
new Vue({
el: '#app-6'
});
<!DOCTYPE html>
<html lang="en>
<meta>
<meta charset="UTF-8>
<title>Components in Vue.js</title>
</meta>
<body>
<div id="app-6">
test
<my-component></my-component>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.1.6/vue.min.js></script>
</body>
</html>
Could you please provide any suggestions or guidance on what might be causing the issue?
Your help is greatly appreciated!