chore: update onChanges example
This commit is contained in:
parent
ce9210d93c
commit
ccd3d9ed18
1 changed files with 3 additions and 2 deletions
|
@ -152,8 +152,9 @@ import WebComponent from "https://unpkg.com/web-component-base";
|
||||||
|
|
||||||
class ClickableText extends WebComponent {
|
class ClickableText extends WebComponent {
|
||||||
// gets called when an attribute value changes
|
// gets called when an attribute value changes
|
||||||
onChanges({attr, prev, curr}) {
|
onChanges(changes) {
|
||||||
console.log('>>> something changed', {attr, prev, curr})
|
const {property, previousValue, currentValue} = changes;
|
||||||
|
console.log('>>> ', {property, previousValue, currentValue})
|
||||||
}
|
}
|
||||||
|
|
||||||
get template() {
|
get template() {
|
||||||
|
|
Loading…
Reference in a new issue