Example app-router setup to get you running locally.
Download and un-zip the examples.
Hash routing uses hash paths /#/paths
.
- Open a terminal in the
hash-routing
directory - Start a static content server with node
http-server
orpython -m SimpleHTTPServer 8080
- Open http://localhost:8080/
Push state routing uses regular paths /path
and extends <a>
tags with the pushstate-anchor.
<a is="pushstate-anchor" href="/home">Home</a>
- Open a terminal in the
pushstate-routing
directory - Start the express.js server with
node server.js
- Open http://localhost:8080/
Examples of app-router
, flatiron-director
, and plain old HTML files.
https://github.com/erikringsmuth/polymer-router-demos