Router with app-route like API, wrapped in an iron-selectable element that binds the active route.

[ This description is mirrored from README.md at github.com/IswPolymerElements/isw-route on 2019-05-10 ]

<isw-route>

Router with app-route like API, wrapped in an iron-selectable element that binds the active route.

<app-location route="{{route}}"></app-location>

<isw-route-selector route="[[route]]" attr-for-selected="route" selected="{{selectedRoute}}" data="{{data}}">
  <isw-route route="a" pattern="/route-a"></isw-route>
  <isw-route route="b" pattern="/route-a/route-b"></isw-route>
  <isw-route route="c" pattern="/route-c/:somedata"></isw-route>
  <isw-route route="d" pattern="/route-c/route-d"></isw-route>
</isw-route-selector>

<iron-pages attr-for-selected="route" selected="[[selectedRoute]]">
  <div route="a">Route A</div>
  <div route="b">Route B</div>
  <div route="c">Route C</div>
  <div route="d">Route D</div>
</iron-pages>

Install

Link to this version
TestedReleased 23 June 2017Other
Framework Support
Polymer 2.0+
Browser Compatibility
Install with
Release notes - Version 1.0.6

Dependencies

Polymer/polymer#^2.0.0