mirror of
https://github.com/jlengrand/polymer-3-example.git
synced 2026-03-10 08:41:21 +00:00
Playing around with Polymer 3
This commit is contained in:
11
test-element.js
Normal file
11
test-element.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Element } from '/node_modules/@polymer/polymer/polymer-element.js';
|
||||
import '/node_modules/@polymer/paper-button/paper-button.js';
|
||||
export class TestElement extends Element {
|
||||
static get template() {
|
||||
return `
|
||||
<h1>Hello Polymer 3!</h1>
|
||||
<paper-button toggles raised>Polymer 3 button test</paper-button>
|
||||
`;
|
||||
}
|
||||
}
|
||||
customElements.define('test-element', TestElement);
|
||||
Reference in New Issue
Block a user