Answer the question
In order to leave comments, you need to log in
Vue cdn, component from file?
When connecting Vue via NPM and working with components, everything is clear. The component can be connected from a file, everything works.
But when connecting Vue via CDN, it is not possible to connect the component from the file.
Here is an example code:
import firstComponent from 'firstComponent.js';
new Vue({
el: '#app',
components: {
firstComponent
},
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question