-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-training.html
37 lines (35 loc) · 909 Bytes
/
test-training.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link rel="import" href="../polymer/polymer-element.html">
<dom-module id="test-training">
<script>
/**
* `test-training`
* Test examples
*
* @customElement
* @polymer
* @demo demo/index.html
*/
class TestTraining extends Polymer.Element {
static get is() { return 'test-training'; }
static get properties() {
return {
prop1: {
type: String,
value: 'test-training',
},
};
}
static get template() {
return Polymer.html`
<style>
:host {
display: block;
}
</style>
<h2>Hello [[prop1]]!</h2>
`;
}
}
window.customElements.define(TestTraining.is, TestTraining);
</script>
</dom-module>