Web Components
Metal components are generally invoked in one of three ways:
- JavaScript
new metal.MyComponent({
title: 'Hello, World!'
}, '#element');- Soy
{call MyComponent.render}
{param title: "Hello, World!" /}
{/call}- JSX
<MyComponent title="Hello, World" />However, with the help of the metal-web-component package, Metal components can be invoked as Custom Elements in plain HTML.
<my-component title="Hello, World"></my-component>