HTML Web Component using Vanilla JavaScript
This repository contains the code I wrote to go along with web component posts. To run the code, you need a static server. I use static-server for it. Go to either directory and run:
$ static-server
Then navigate to localhost.
Links to tutorials:
The HTML and DOM standards define four new standards/APIs that are helpful for defining Web Components. These standards are:
<template>
element, which describes a standard DOM-based approach for client-side templating. Templates allow you to declare fragments of markup which are parsed as HTML, go unused at page load, but can be instantiated later on at runtime.