Want to send parameter in url in angular 7, so that the url should look like return example.com/search/users?q=tom.
I am using the following syntax in my service .
public searchUsers(obj):any{
return this._http.get('example.com/search/users?q=', obj)
}
I want the url to be look like example.com/search/users?q=