radh-ui
Version:
Stencil Component Starter
24 lines (20 loc) • 646 B
JavaScript
import { r as registerInstance, c as createEvent, h, H as Host } from './index-a9700b09.js';
const cjsChildCss = ":host{display:block}";
class CjsChild {
constructor(hostRef) {
registerInstance(this, hostRef);
this.paga = 0;
this.reply = createEvent(this, "reply", 7);
}
async setPaga(money) {
this.paga = this.paga + money;
}
componentDidLoad() {
this.reply.emit('Noooooooooooooo');
}
render() {
return (h(Host, null, h("p", null, "Money: ", this.paga), h("p", null, this.messageFromFather)));
}
}
CjsChild.style = cjsChildCss;
export { CjsChild as cjs_child };