cheetah-framework
Version:
Cheetah Framework JS used in all our applications
21 lines (17 loc) • 405 B
JavaScript
/**
* Use it to dynamically create and mount
* a new instance of a component such as
* remote error restrictions and address
* validation
*/
/* global cheetahApp */
import Vue from 'vue'
export default class App {
static create (component, propsData) {
const ComponentClass = Vue.extend(component)
return new ComponentClass({
propsData,
parent: cheetahApp.$root
})
}
}