DEV Community

Discussion on: Use Vue to create a SPA without any Node modules

Collapse
 
nssimeonov profile image
Templar++

Out of curiosity - why are you loading the router like this:

<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-router/3.0.2/vue-router.js"></script>

but not vue.js too?

Thread Thread
 
arswaw profile image
Arswaw • Edited

Because the developers don't include an ES6 compatible version of the router. Only Vue.

EDIT: Now they do.