Creates a component method amendment (and decorator) for custom element attribute change callback.
Example:
@Component('my-component')class MyComponent { @AttributeChanged('my-attribute') myAttributeChanged(newValue: string, oldValue: string | null) { console.log(`my-attribute value changed from ${oldValue} to ${newValue}`); }}
New component method amendment.
Amended component class type.
Amended component member entity type.
Optional
Attribute definition or just an attribute name.
Generated using TypeDoc
Creates a component method amendment (and decorator) for custom element attribute change callback.
Example:
Returns
New component method amendment.