Utilizing $http.get to retrieve data which includes MailID and SubscribedDate. The results are stored in $scope.subscriber. I am interested in extracting an array of all MailID values such as:
["<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5f353037311f322c31713c30">[email protected]</a>", "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d4a4b1a0b1a694b3b9b5bdb8fa">[email protected]</a>", "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="89e4e0e2ecc9fafde8eae2a7eae6">[email protected]</a>"]
getAll();
function getAll() {
var servCall = APIService.getSubs();
servCall.then(function (d) {
$scope.subscriber = d;
}, function (error) {
console.log('Oops! Something went wrong while fetching the data.')
});