Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 269 Bytes

Updated.md

File metadata and controls

8 lines (7 loc) · 269 Bytes

Updated provides a weak map of previous propertiess. You access new values using this.

updated(changedPropertes) {
  const oldProp = changedProperties.get("prop") // if the property has changed get the old value
  const newProp = this.prop; // new value
}