Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular httpclient query params not working

getLogs(logNamespace): Observable<any> {

    // Setup log namespace query parameter
    let params = new HttpParams().set('logNamespace', logNamespace);

    return this._HttpClient.get(`${API_URL}/api/v1/data/logs`, { params: params })
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angular #httpclient #query #params #working
ADD COMMENT
Topic
Name
8+1 =