<x-route>

A X-Tag element for URL routing, backed by Flatiron Director.

Examples

Click on a route (or open in a new tab) to test <x-route>:

Listen for changes via the route-changed event



    

Usage

<!-- Automatically go to a route 'home' -->
<x-route route="/home" auto"></x-route>

<!-- Define paths to routes we would like to support -->
<x-route path="/favorites"></x-route>
<x-route path="/about"></x-route>
<x-route path="/books"></x-route>
<x-route path="/books/view/:bookId"></x-route>
<x-route path="/:foo/:bar/:bazz"></x-route>