4 ms·
Exactly, it's awesome because if you eventually refactor the container page or section to a Vue comp, you can include the other child components straight withou
by AltruisticGap 8y ago
Exactly, it's awesome because if you eventually refactor the container page or section to a Vue comp, you can include the other child components straight without any further work. They already work as full blown components.
Plus:
- since we're mounting components and using SFC, we can use the "runtime only" build (though I keep the full one when I want to make something quick, because the savings in the minified Vye library were very small)
- it can be a small performance improvement in cases where we want to mount something in response to user input, whereas the template in the html page will be compiled on page load (afaik).