zextra
Version:
zikojs extra components
18 lines • 432 B
JavaScript
export class ZikoProvider {
constructor(component){
this.init(component);
}
init(component){
this.component = component instanceof ZikoProvider ? component.component : component
}
get element(){
return this.component.element;
}
mount(target){
this.component.mount(target);
return this;
}
unmount(){
this.component.unmount()
}
}