I am developing an application using angularjs. In which I am sending a 
call to the API which is on another domain. When I am sending a post 
request using $http post, then the network activity indicator keeps 
spinning on the iOS(iPad mini). It is working fine on desktop browsers.

My code for the post request is like

    $http({
            url: API_CONFIG.apiURL,
            method: "POST",
            data: {"client_id": API_CONFIG.clientId, "username": 
$scope.username, "password": $scope.password, "connection": 
API_CONFIG.connection, "grant_type": API_CONFIG.grant_type, "scope": 
API_CONFIG.scope},
            headers: {
                'Content-Type': 'application/json; charset=utf-8'
            }
        }).success(function (data, status, headers, config) {            
        })
        .error(function (data, status, headers, config) {
        })

I don't know what I am doing wrong in this call.

Any help appreciated. Thanks in Advance

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to