1. Base (Template)
Render from an on-page template.
Explicit examples for all key behaviors: template mode, URL mode, dynamic sources, slots, style targeting, lifecycle events, and failure paths.
Render from an on-page template.
Render from a URL template.
Dynamically switch between components.
Inject default and named slot content from the host element.
Listen to loading, loaded, and error events from URL rendering.
Status:
Apply only a specific stylesheet title with
x-component-styles.
Missing templates and bad URLs fail gracefully without breaking the page.
Nothing here? Good, that means the component failed to load but did so gracefully without breaking the page.
Or we could listen for an error event and display the message if
we wanted to.
Age:
Age: