I am working with a web API for fetching some products. Here is my code.
$scope.loadApiProducts = function (ev) {
$http({
method: 'get',
url: 'http://seller.digishoppers.com/webservice/productcategoryby/A123456/1/' + ev,
//withCredentials: true,
}).then(function success(res) {
console.log('data is');
console.log(res.data.data);
$scope.productsApi = res.data.data;
}, function error(res) {
// console.log(res.data);
})
}
Can any one please help me to solve it . its working fine with chrome's cross extension