Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
598 views

I have create my api/product-search.php backend in http://localhost/ like so: <?php header('Access-Control-Allow-Origin', '*'); header("Access-Control-Allow-Headers: Content-Type"); header("Access-...
user12505305's user avatar
-2 votes
1 answer
56 views

i am new in angular world. i trying to learn this framework but it is so HARD!... so in my first example i got error: import { BrowserModule } from '@angular/platform-browser'; import { NgModule } ...
გენო მუმლაძე's user avatar
2 votes
1 answer
220 views

I need to add a token to the request in my interceptor. I keep on getting the error core.js:1673 ERROR TypeError: You provided 'undefined' where a stream was expected. You can provide an Observable, ...
Asool's user avatar
  • 14.3k
-1 votes
1 answer
204 views

Working with angular 2 HTTP PUT request. I have a component and service. In the component I make request to update the attributes of account. It then calls the Service to update the account through ...
Nandini's user avatar
  • 31
1 vote
1 answer
4k views

:) I have an Angular application (@angular/cli: ~6.0.3, typescript: ~2.7.2) which have a json file in assets folder. I'm trying to access this json file, write on it and save it. How can I do that? ...
psc37's user avatar
  • 81
0 votes
1 answer
427 views

//component.ts public items: any; getResult(){ var jsonBody = {}; jsonBody['activity'] = this.activity; jsonBody['seatnumber'] = this.seatNo; this.localService.postCall(jsonBody) ...
lakhan khandelwal's user avatar
0 votes
1 answer
37 views

i have a problem receiving data to variable. this works: this.http.get(some_url).subscribe( data => { console.log(JSON.parse(data['_body'])) }); but if i try to get ...
AK96's user avatar
  • 1
2 votes
1 answer
752 views

I have a service that takes too long to return. Once the user has submitted a request, he/she should be able to navigate to any other page. How can I alert her that the request she submitted has ...
karthikaruna's user avatar
  • 3,276
2 votes
2 answers
8k views

I have a mean stack going. Angular 5. I'm grabbing data from a form and i'm calling a Service to handle sending the form-data to the backend api. The service makes use of the HttpClient. It sends ...
Edwin Martinez's user avatar
0 votes
0 answers
36 views

I am facing a very strange problem. I implemented a file upload function for PDFs with REST api and track the upload process like that. My upload function looks like this: upload(){ this....
Daniel Klotzsche's user avatar
-1 votes
1 answer
83 views

In Angular, is it secure to use Http Get when calling Web API, supplying password in the field? Or is it more secure if one uses Http Post? The following is an example on how to perform Http.get in ...
user1034912's user avatar
  • 2,348
3 votes
1 answer
4k views

I am rather new to Angular and now am upgrading from "the old" Http API to the new HttpClient API. Therefor I have to use the new HttpHeaders and HttpParams, which works fine so far. But the ...
Samarek's user avatar
  • 444
0 votes
2 answers
660 views

I am trying to convert a json response into an array in angular 2. The following is the code i have used, .ts file response; resp; constructor(private http:Http) { } get() { ...
user avatar
0 votes
2 answers
73 views

I want to call service only when user input is not empty and ith some delay so user finish the typing. Below is the code. Please help. Component.ts searchByName(event) { this.facilityService....
pawankumar meshram's user avatar
0 votes
2 answers
93 views

My Api is giving me different types of status codes for warnings and errors. I have to show different alerts based on response. I am calling http service like this: service.ts @Injectable() export ...
Runali's user avatar
  • 342
1 vote
1 answer
291 views

I have a ASP.NET core web application with angular2 for client-facing.For specific reasons I want to increase the timeout of Http calls from angular2 to back-end server from default to 8 minutes.I ...
Karthiga Sundarajan's user avatar
1 vote
0 answers
1k views

Currently I am uploading file using angular2-http-file-upload and send it to django back-end and it work fine with small files here is how I done it but when uploading large file 35Mb-600Mb its ...
Nazir Ahmed's user avatar
0 votes
1 answer
3k views

I am trying to use angualrio to read from an array from a json file following this tutorial getting-started-with-angular-2-step-by-step-6-consuming-real-data-with-http/. However I am getting the ...
A.Shoman's user avatar
  • 3,094
2 votes
1 answer
2k views

This works: this.http.get('/doesntexist1') .finally(() => console.log('finally1')) .subscribe(() => { }); But this doesn't: const obs = this.http.get('/doesntexist2'); obs.finally(() => ...
benji's user avatar
  • 2,511
6 votes
4 answers
6k views

To know if a request has completed, I do if (httpEvent instanceof HttpResponse). Likewise, how to know if a request is cancelled in HttpInterceptor? Below is my intercept function. intercept(...
karthikaruna's user avatar
  • 3,276
3 votes
0 answers
2k views

I have some data that has to be loaded before the page loads and I'm using route resolvers to achieve this. Below is my code. Service: getUsernamesAndBUs(): Observable<any> { return ...
karthikaruna's user avatar
  • 3,276
1 vote
3 answers
1k views

I am working on a mobile app. I need to fetch some data from WordPress website but the http request always through error Response for preflight has invalid HTTP status code 403 Typescript this._http....
shah's user avatar
  • 1,169
1 vote
0 answers
528 views

I want to use static HTTP client service for some reasons. I tried it like the following but I got an error. Is creating static the service possible? static service: import { Http, URLSearchParams, ...
zono's user avatar
  • 8,614
-1 votes
1 answer
915 views

I am using HTTP angular2 to post some data. It is working ok, I can send data from angular2 service , receive it in my express backend. I want to get the returned data from express. If i use .get ....
raju's user avatar
  • 7,004
0 votes
0 answers
47 views

i create a custom http extends HttpInterceptor, like this: @Injectable() export class AuthInterceptor implements HttpInterceptor { constructor(private router:Router, private store: ...
jomalone_jia's user avatar

1
2 3 4 5
8