Skip to content

Polymer decorators don't work well with the polyfill #46

Description

@danielvanmil

To reproduce:

  • Implement a Polymer 3 element with Polymer decorators and a computed property, like:
class X extends PolymerElement {
    @decorators.property({ notify: true, reflectToAttribute: true, computed: "getP1()", type: String })
    p1: string = null;

    getP1(): string {
        return 'second string';
    }

static get template(): HTMLTemplateElement {
        return html`p1: [[p1]]`;
}

The computed property is not computed with the polyfill, without it is.

Any idea?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions