function PhoneInfo($scope, $http) {
$http({
method: 'GET',
url: 'myurl/?',
params: { 'company': '1571', 'secret': 'complex15', 'mode': 'phoneinfo', 'outputtype': 'json' }
}).success(function (data) {
alert(data);
$scope.PhoneState = data;
}).error(function (data, status) {
$scope.status = status;
alert('Error');
});
}
When calling the url directly from browser, its giving Json string but in above code, its giving error. I am very new to Angular JS. Please help, thanks