Skip to content

Latest commit

 

History

History

router-history-api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

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.