<x-route>

A Polymer 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/>

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