I am working on a project in .NET with MVC and Vue.js, at the moment of wanting to use the components I have to declare it as follows:
import Vue from 'vue';
import example from './components/example.vue'
import equiposcrear from './components/equipos/crear.vue'
import equipos from './components/equipos/index.vue'
import cargardiesel from './components/equipos/cargarDiesel.vue'
const app = new Vue({
el: '#app',
components: {
example,
equiposcrear,
equipos,
cargardiesel
}
})
If i registered as Vue.component('equipos', require('./components/equipos/index.vue'));
At the moment i want to use send the error that the component is not registered
@{
ViewBag.Title = "Equipos";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<div id="app">
<equipos></equipos>
</div>
What am i doing wrong?