I am using angular 2, I need to do a delete request to a backend having a path param like this
import { Http } from "@angular/http";
deletePlayer(id: string): Observable<any> {
return this.http.delete("/api/players/{id}");
}
My question is, what is the best way to pass the id path param to the http object. I've used UrlSearchParams for the query parameters but this does not seem to have an option for path params. The docu is not clear about this either.