Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Revisit language on static props #2414

Open
ghost opened this issue Dec 8, 2017 · 0 comments
Open

Revisit language on static props #2414

ghost opened this issue Dec 8, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 8, 2017

From @justinfagnani

Re: properties like template and properties

We always call them the "static X getter", but really, a getter is just one way to implement
the property.

You could also just set the property on the constructor:

class MyElement {}
MyElement.template = html`...`;

Or if using a compiler, and in the near future in native JS, declare a static property:

class MyElement {
  static template = html`...`;
}
@ghost ghost changed the title Revisit language on static getters Revisit language on static props Dec 8, 2017
@ghost ghost mentioned this issue Dec 8, 2017
@ghost ghost self-assigned this Jan 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants