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 -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -