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


what's right code talk between options http api 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 );         } ); 

try way

        return $http( {             method: 'options',             url: apiurl + '/options?clientid=' + clientid         } ).error( function ( a, b, c, d, e ) {             console.log( 'err' );         } ); 

Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -