Slide 30
Slide 30 text
Element Lifecycle
class CheckoutBasket extends HTMLElement {
constructor() {...}
connectedCallback() {...}
attributeChangedCallback(attr, oldVal, newVal) {...}
disconnectedCallback() {...}
}
is created
attached to DOM
removed from DOM, cleanup!
someone change an attribute