I'm trying to pass a json object just after redirecting to another page, The problem is when I use $scope.data in order to save client, the problem is that after making the redirection the $scope.data is empty again
testProjectApp.controller('ClientController', 
 function EventController($scope, clientList, $window, updateClient){
    $scope.editClient=function(client){
        $scope.data=client;
        $window.location.href = 'ClientDetails.html";
    }
the controller is working on two pages
 
     
     
    