Showing how the Routing Life Cycle works in Angularjs