polymer-analyzer
Version:
Static analysis for Web Components
33 lines (31 loc) • 480 B
JavaScript
/**
* @polymerElement
* @extends Polymer.Element
*/
class BaseElement extends Polymer.Element {
static get properties() {
return {
foo: {
notify: true,
type: String,
},
};
}
}
/**
* @polymerElement
* @extends BaseElement
*/
class SubElement extends BaseElement {
static get is() {
return 'sub-element';
}
static get properties() {
return {
bar: {
notify: true,
type: String,
},
};
}
}