Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 485 Bytes

File metadata and controls

14 lines (8 loc) · 485 Bytes

Respond to attribute changes

Question - How do I make my component respond to attribute changes?

With a pretty simple component we can repsond to attribute changes and update the content of our component pretty easily.

In this example I have some vanilla JS manipulating the component's attribute from the outside so we can see how the component responds.

Code is here Vanilla JS, with polyfills, no imports.

Browser Requirements:

  • Evergreen