Routing for pin while passing location JSOn the $stateParams