UNPKG

web-component-stencil-test

Version:
25 lines (24 loc) 799 B
import { r as registerInstance, h } from './core-979eec24.js'; function format(first, middle, last) { return ((first || '') + (middle ? " " + middle : '') + (last ? " " + last : '')); } var MyComponent = /** @class */ (function () { function MyComponent(hostRef) { registerInstance(this, hostRef); } MyComponent.prototype.getText = function () { return format(this.first, this.middle, this.last); }; MyComponent.prototype.render = function () { return h("div", null, "Hello, World! I'm ", this.getText()); }; Object.defineProperty(MyComponent, "style", { get: function () { return ""; }, enumerable: true, configurable: true }); return MyComponent; }()); export { MyComponent as my_component };