diff --git a/examples/templating/index.js b/examples/templating/index.js index c83704d..dd6019e 100644 --- a/examples/templating/index.js +++ b/examples/templating/index.js @@ -1,3 +1,4 @@ +// @ts-check import { WebComponent, html } from "../../src/index.js"; export class Counter extends WebComponent { @@ -5,6 +6,19 @@ export class Counter extends WebComponent { count: 123, }; get template() { + + const list = ['a', 'b', 'c', 'what'] + const links = [ + { + url: 'https://ayco.io', + text: 'Ayo Ayco' + }, + { + url: 'https://ayco.io/gh/McFly', + text: 'McFly' + } + ] + return html`