I have two pages in my angularjs application, I get some data from database to show in a table, then i doubleclick on a row and go to another page to show more details. The problem consists on how to send data from the first page to the second one to show them knowing that i have all the data i need to show in my variable "branchs" that i showed some of them in the first page, here is a part of my code :
var app= angular.module('MyApp' , []);
app.controller('Ctrl', function($scope, $http){
$http.get('http://localhost:8080/Test_WS/test/branchs/brnch')
.then(function(response) {
$scope.branchs = response.data;
})
.then(function(response) {
$scope.details = function (b) {
window.location = 'http://localhost:8080/TestProject/CreateBranch.html';
};
});
});