Skip to content

Instantly share code, notes, and snippets.

@JiaLiPassion
Last active June 20, 2018 06:20
Show Gist options
  • Save JiaLiPassion/cbea43ca469211b94c55f673e5800801 to your computer and use it in GitHub Desktop.
Save JiaLiPassion/cbea43ca469211b94c55f673e5800801 to your computer and use it in GitHub Desktop.
callback summary 
constructor initialize state or shadowRoot if needed
connectedCallback Will be called when element is added to DOM
disconnctedCallback Will be called when element is removed from DOM
attributeChangedCallback Will be called when attribute of the element change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment