This is basically equivalent to Page Switcher example, but it uses HTML5 history API.
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.
This demo is not available on Plunker.
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.