Explore real-world examples demonstrating zero-dependency client-side HTML composition, declarative slots with default fallbacks, responsive repeat grids, and dynamic source code injection.
Basic Components & Code Injection
This example demonstrates how to define reusable components using <an-component-def> and inject dynamic content into them using <an-inject>. It also shows how to display raw code snippets in the browser using <an-code> without HTML entities escaping.
<an-component-def>
<an-inject>
<an-place>
<an-code>
<an-include>
Layouts & Default Fallbacks
This example focuses on creating master page structures using <an-layout-def> to wrap multiple pages in a single layout. It also highlights how to provide default fallback content inside <an-place> tags when an <an-inject> is omitted by the consumer.
<an-layout-def>
<an-layout>
<an-inject>
<an-place> default fallbacks
Data Fetching & Looping
This example introduces <an-data> and <an-repeat>. It shows how to fetch external JSON files locally or from an API, store them globally, and then iterate over the arrays to dynamically render grids and lists of components.
<an-data>
<an-repeat>
JSON binding
Double curly braces {{ }}
Complex Composition
This example demonstrates the full power of Andalina by chaining all features together: a page template calling a layout, fetching data, repeating over that data, and rendering encapsulated components within the loop.
Layout → Data → Repeat → Component
Deep hierarchy
Bootstrap UI Library
Learn how to encapsulate complex third-party CSS framework markup (like Bootstrap) into clean, reusable Andalina components. Also demonstrates how to safely load Bootstrap JS after Andalina finishes DOM mutations.
Bootstrap 5
andalina:ready event
Markup Encapsulation
React Integration
Learn how to mount complex Javascript frameworks (like React) inside an Andalina-managed DOM by listening for the andalina:ready event.
React 18
andalina:ready event
Lifecycle Management
Angular Integration
Learn how to bootstrap an Angular application safely inside an Andalina layout by waiting for DOM construction to finish.
Angular
andalina:ready event
Manual Bootstrap
Logic & JS Bindings
A personalized user dashboard showcasing the latest logical tags and template features. Discover how to use conditional blocks (<an-if> / <an-else>) and native JavaScript expressions (Math, Methods, and Fallbacks) directly inside bindings.
<an-if> / <an-else>
JS Math & Methods
Binding Fallbacks
Component DevTools
Explore the Andalina DevTools! By setting debug: true in your config, Andalina will render a beautiful UI overlay and console tree map.
debug mode
Tree Tracking
Performance