Pakk
Pakk

Reputation: 1339

What's the correct way to send parameters from AngularJS to an Options HTTP API?

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

Answers (1)

Don Thomas Boyle
Don Thomas Boyle

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

Related Questions