Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 659 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 659 Bytes

Router - History API

This is basically equivalent to Page Switcher example, but it uses HTML5 history API.

Set up your server

You need to set up your server (Express or anything) to redirect all to index.html. You can also try it with superstatic. Just write superstatic.json like this.

Have a play

This demo is not available on Plunker.

Run locally

Install superstatic if you don't have.

$ npm install -g superstatic

Download or clone this repo, then run the command.

$ cd to/this/dir
$ superstatic

Open the URL shown in your browser.