Build URL '/search'
as string. Like
"/search?fname="+fname"+"&lname="+lname
Actually I didn't use
`$http({method:'GET', url:'/search', params:{fname: fname, lname: lname}})`
but I'm sure "params" should be JSON.stringify
like for POST
var jsonData = JSON.stringify(
{
fname: fname,
lname: lname
}
);
After:
$http({
method:'GET',
url:'/search',
params: jsonData
});