This decorator will cause a property to be updated from the state on any state change. It takes an optional expression to pull the value from the state, otherwise it will assume there exists a property on the state of the same name.
Example:
class DecoratedElement extends LitElement { @liveStateProperty() foo: string = 'bar'; @liveStateProperty('bing.baz.bar') nested: string;}
Optional
Generated using TypeDoc
This decorator will cause a property to be updated from the state on any state change. It takes an optional expression to pull the value from the state, otherwise it will assume there exists a property on the state of the same name.
Example: