/app-router-examples

app-router examples

Primary LanguageCSSMIT LicenseMIT

app-router examples

Example app-router setup to get you running locally.

Download and un-zip the examples.

hash-routing

Hash routing uses hash paths /#/paths.

  1. Open a terminal in the hash-routing directory
  2. Start a static content server with node http-server or python -m SimpleHTTPServer 8080
  3. Open http://localhost:8080/

pushstate-routing

Push state routing uses regular paths /path and extends <a> tags with the pushstate-anchor.

<a is="pushstate-anchor" href="/home">Home</a>
  1. Open a terminal in the pushstate-routing directory
  2. Start the express.js server with node server.js
  3. Open http://localhost:8080/

Other Routers

Examples of app-router, flatiron-director, and plain old HTML files. https://github.com/erikringsmuth/polymer-router-demos