Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 698 Bytes

File metadata and controls

8 lines (6 loc) · 698 Bytes

prprabhu-providers

This exploration focuses on ways to connect a component to backend services. All demos are linked from demo/index.

  • demo/global is the easiest option of setting a global constant and using that internally from the components.
  • demo/props is an example of connecting explicitly via component attributes and properties.
  • demo/search uses a provider component that is searched up the ancestor chain by the component (this doesn't work across shadow roots by default).
  • demo/event uses a provider ancestor that handles a custom event triggered by the served component.