webcomp-ts
Version:
Base class for web components has basic boilerplate code to simplify custom element implementation
22 lines (19 loc) • 668 B
HTML
<html>
<head>
<title>🛠 To-Do list</title>
<meta name="description" content="Example for web components">
<script src="https://unpkg.com/@webcomponents/webcomponentsjs@2.2.7/webcomponents-loader.js"></script>
</head>
<body>
<todo-list>
<h1>Example 🛠 To-Do list</h1>
<p>Time is precious 🙂 <todo-clock></todo-clock></p>
<p>Actions: add new task, mark a task with checkbox as done, edit task and delete task.</p>
</todo-list>
<script type="module">
import todo from "./todo.js";
todo();
</script>
</body>
</html>