wesleyboar / poc-dynamic-load-custom-element

Proof of Concept: Dynamically load a custom element

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamically Load a Custom Element

A custom element can be built easy enough, but how to dynamically load it? This 'proof of concept' will try to answer that question.

Quick Start

  1. npm ci
  2. npm run start
  3. Open https://localhost:5000/sample-custom-element.html.
    • You should see text "I am content for a sample element."
  4. Open https://localhost:5000/.
    • You hope to see text "I am content for a sample element."

About

Proof of Concept: Dynamically load a custom element


Languages

Language:HTML 48.4%Language:JavaScript 31.1%Language:CSS 20.5%