generator-lit-element
Version:
Scaffolds a empty lit-element module with tests and documentation
28 lines (23 loc) • 680 B
HTML
<html>
<head>
<title>Material Web Components Catalog</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<demo-view></demo-view>
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
<script type="module">
import {LitElement, html} from '@polymer/lit-element/lit-element.js';
import {<%= className %>} from '../<%= moduleName %>.js'
class DemoView extends LitElement {
_render() {
return html`
<<%= moduleName %>>foo</<%= moduleName %>>
`;
}
}
customElements.define('demo-view', DemoView);
</script>
</body>
</html>