0

@ lit-element -> Properties -> Configure attributes -> Configure observed attributes

it refers that:

By default, LitElement creates a corresponding observed attribute for all declared properties.

and

To prevent an observed attribute from being created for a property, set attribute to false. The property will not be initialized from attributes in markup, and attribute changes won’t affect it.

Clarification:

When an observed attribute is prevented, the property is still observable within the element, isn't it?

Tia

SONewbiee
  • 363
  • 2
  • 15

1 Answers1

2

Yes. The property will still be accessible from within javascript, and will trigger re-renders.