/mat-button-custom-element

Custom Element implementing Material Design Button

Primary LanguageJavaScript

Material design button custom element

  • What is a custom element
  • Why use a custom element
  • Basic declaration of a custom element
  • Create the button and declare it in html
  • Add styles to html page
  • Move styles to be declared inside element
  • Add applyStyles method to put styles in the head of document

References