diff --git a/packages/@hec.js/ui/example/component/component.js b/packages/@hec.js/ui/example/component/component.js index 34fc48d..d8fb156 100644 --- a/packages/@hec.js/ui/example/component/component.js +++ b/packages/@hec.js/ui/example/component/component.js @@ -2,6 +2,8 @@ import { component, templateByName } from '../../lib/index.js'; component('my-counter', { count: 0, camelCase: '' }, ({ count, camelCase }) => { + console.log('EXECUTE') + let isDown = false; const mousedown = async () => { @@ -16,8 +18,7 @@ component('my-counter', { count: 0, camelCase: '' }, ({ count, camelCase }) => { } - return templateByName( - new URL('./component.html', import.meta.url), + return templateByName('./component.html', { count, mousedown, diff --git a/packages/@hec.js/ui/example/component/index.html b/packages/@hec.js/ui/example/component/index.html index 5692991..aa67637 100644 --- a/packages/@hec.js/ui/example/component/index.html +++ b/packages/@hec.js/ui/example/component/index.html @@ -5,16 +5,23 @@