1.0.2 • Published 6 years ago
my-test-element v1.0.2
\<my-test-element>
Usage
Installation
npm install --save my-test-element
In an HTML file
<html>
<head>
<script type="module">
import 'my-test-element';
</script>
</head>
<body>
<my-test-element prop1="world"></my-test-element>
</body>
</html>
In a Polymer 3 element
import {PolymerElement, html} from '@polymer/polymer';
import 'my-test-element';
class SampleElement extends PolymerElement {
static get template() {
return html`
<my-test-element prop1="world"></my-test-element>
`;
}
}
customElements.define('sample-element', SampleElement);