Assume that I have two input boxes with corresponding ng-model as fname and lname. If I call http request as :
$http({method:'GET', url:'/search', params:{fname: fname, lname: lname}})
will it call to the url :
/search?fname=fname&lname=lname
The error I am getting at the backend(python) is :
cannot concatenate str and nontype objects.
Are these parameters not sent as strings? If not, how to get around with this?
question from:https://stackoverflow.com/questions/18910054/how-to-pass-parameters-to-http-in-angularjs