[Vuejs]-Why can't a global component be separated from a Vue instance into a different JS file?

0👍

You need to register the login component first before you use it in the template of another component.

Order your scripts like this:

<script src="./js/login.js" charset="UTF-8"></script>
<script src="./js/global.js" charset="UTF-8"></script>

Leave a comment