Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support or document non-generated accessors. #6

Closed
justinfagnani opened this issue Jan 19, 2018 · 2 comments
Closed

Support or document non-generated accessors. #6

justinfagnani opened this issue Jan 19, 2018 · 2 comments

Comments

@justinfagnani
Copy link
Contributor

We should make sure that handwritten accessors are fully supported, documented, and tested.

I assume this much works to delegate state to Polymer, but does it properly call render()?

class MyElement extends LitElement {
  get foo() { return this._getProperty('foo'); }
  set foo(v) { this._setProperty('foo'); }

  render() {
    return html`foo: ${this.foo}`;
  }
}
@sorvell
Copy link
Member

sorvell commented May 1, 2018

This is supported and tested.

@sorvell sorvell closed this as completed May 1, 2018
@nonmetalhail
Copy link

It would be lovely if you could add this to the documentation :)

keanulee pushed a commit that referenced this issue Nov 13, 2018
Remove pages with no content
bicknellr pushed a commit that referenced this issue Jul 26, 2021
Get shack benchmark ready for lit-element testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants