Answer the question
In order to leave comments, you need to log in
How to make such a Get request in Angular 2?
There is a request like this:
public GetJobsListExcel(jobs: JobViewModel[] ): Promise<string> {
let JobIds: number[] = [];
jobs.forEach(x => JobIds.push(x.JobId));
let url = `/api/job/jobs-list-excel?jobIds=${JobIds}`;
return this.http.get(url)
.toPromise()
.then(response =>
response.text() as string
);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question