One of the functions in my code is called getMail()
$scope.getMail=function(){
$http.get(APISource).
success(function(data) {
$scope.mail =data;
}).
error(function(data) {
console.log("error");
console.log(data);
});
}
In the success callback of this function, I am storing the returned data in $scope.mail; and although I have another function
function1() within the same controller, $scope.mail is not accessible.
Can anyone please provide a solution?