Reputation: 1339
What's the right code to talk between an options HTTP API with parameters?
return $http( {
method: 'OPTIONS',
url: apiUrl + '/Options/' + clientID
} ).error( function ( a, b, c, d, e ) {
console.log( 'a, b, c, d, e', a, b, c, d, e );
} );
Upvotes: 1
Views: 72
Reputation: 3045
Try this way
return $http( {
method: 'OPTIONS',
url: apiUrl + '/Options?clientID=' + clientID
} ).error( function ( a, b, c, d, e ) {
console.log( 'err' );
} );
Upvotes: 1