$http.get('/FetchData').then(function(response) {
$scope.newTimeStamp = response.data.result[1].timestamp;
var timeValue = moment($scope.newTimeStamp,"YYYY-MM-DD HH:mm:ss");
if($scope.newTimeStamp != undefined && $scope.newTimeStamp != ''){
$scope.newTimeStamp = $scope.newTimeStamp;
} else {
$scope.newTimeStamp = '';
}
}
Now, I need to pass this timeStamp value to a different page when making another service call. How can I achieve this and display it there?
I'm not very proficient in coding... Any help would be appreciated.