Simple SPA (Single Page App)

Demo

Open your browser console & click the step ( 1 / 2 / 3 ) links to move in between routes.

Behind the scenes BadassAppRouter is hiding all elements with the css class route, then finding the element with id that matching the route name and showing it.

Also type router.app in your browser to explore (and if you want manipulate) all the pieces of the application.

step 1 >> step 2 >> step 3

Step 1! : enter company details

Step 2!! : enter employee info

Step 3!!! : thank you

Code & Discussion