Creating Vue.js Component Instances Programmatically

added by JavaScript Kicks
1/24/2018 9:22:42 AM

736 Views

I have been on a Vue.js project that required the ability to create components programmatically. By programmatically, I mean you create and insert the components completely from JavaScript, without writing anything in the template. This article aims to illustrate how different aspects of using components in a template, such as instantiation, props passing, slots, mounting, translates to JavaScript code.


0 comments