Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
204 views

I've recently updated my app to Angular 17 and I'm getting this weird error at compile time: ./node_modules/@angular/platform-browser/fesm2022/platform-browser.mjs:2016:81-103 Error: export '...
Francesco Borzi's user avatar
19 votes
7 answers
33k views

I'm learning angular through course and currently I'm learning about Interceptors. The angular version in the course isn't 17 but the one which I'm using in my local is. So, after 1st trying to ...
shivendra yadav's user avatar
0 votes
0 answers
216 views

I have an application with quite a few inputs already. When the user enters a special character like an & it results in an API error. Which makes sense given what's being set is something like: ...
dcp3450's user avatar
  • 11.2k
0 votes
0 answers
146 views

In the context of the discussion at https://stackoverflow.com/a/35043309/19365092, it is advisable to avoid using the subscribe method for HTTP calls. The reason is that while it is true that ...
saurabh tiwari's user avatar
1 vote
2 answers
218 views

I need something like an Observable that calls a webservice exactly once, and return its result to all subscribers. Subscriptions may happen before or after the call. How can I do that? A Subject will ...
luca.vercelli's user avatar
0 votes
1 answer
177 views

I have form, and I want post form values to API, but the values can not be posted, how can resolve this error? my html form: <form #adduser ="ngForm" (ngSubmit)="onAddUser(adduser....
Kareem's user avatar
  • 57
-1 votes
1 answer
1k views

I have to make an http request via Angular but the error written in the title appears whether I use 'post' or 'get' as if the http variable was undefined or uninitialized. I checked the module and is ...
Hector_o'lector's user avatar
0 votes
1 answer
61 views

I have an issue because err is returning a string instead of a HttpResponse. I am not sure why, the server returns the content type as "application/json". Version of Angular is 13. return ...
Matrix12's user avatar
  • 506
1 vote
4 answers
2k views

I am currently getting some data from a dummy api, data from response starts from 1 and the index is currently starting from 0. How I can start the index loop from 1 instead of 0? Following the html ...
Abdullah Roshan's user avatar
0 votes
2 answers
1k views

I know we can retry a failed HTTP API request through retry or retryWhen pipe mehtods from rxjs. I want to do something similar on a successful API call, based on a particular condition in the ...
vibhu's user avatar
  • 89
1 vote
1 answer
824 views

Template <div class="row" *ngFor="let otc of this.jsonData;index as j"> <div> <table class="table table-striped table-fixed"> ...
Rock's user avatar
  • 15
0 votes
1 answer
390 views

winServiceInfo() { this.dataArrs=[] this.winServiceURL = JSON.parse(this.WinService[0].windowsServicesInfo)["Stactuscheck"]; this.service.getWinServicesInfo(this.winServiceURL) ...
Rock's user avatar
  • 15
0 votes
1 answer
41 views

On doing console.log of Api response I get undefined as output. Since I am new to angular your feedback and suggestions would be of great help. Here is the raw response that I get from the api get ...
Ankit_jackar's user avatar
1 vote
2 answers
747 views

I have a problem filling a Users autocomplete on first load. This is my UsersService: public users: User[] = []; constructor(private http: HttpClient) { this.http.get<User[]>(environment....
Iñigo's user avatar
  • 2,026
0 votes
1 answer
1k views

I am in the process of upgrading my project and need to change my api from @angular/http to @angular/common/http. I main question do I just need to change the import or will the code need to change? ...
Jefferson's user avatar
  • 121
0 votes
2 answers
3k views

I made a http post request with my angular service and i'm waiting for a boolean return. But with the 204 http code response with no content, angular return false. This is my service function : public ...
emma_lanome's user avatar
0 votes
1 answer
189 views

This Error is coming when I am trying to show the data from an get api on html template using ngfor in angular ERROR Error: Cannot find a differ supporting object '[object Object]' of type 'object'. ...
Kishkin's user avatar
0 votes
2 answers
3k views

I am writing a simple Angular application that calls to an external API for data. One of these API calls returns data in such a way: { "data": { "items": [ {...
ABCDEF's user avatar
  • 23
0 votes
2 answers
709 views

I have a service like getOrganizationsFile() { return this.http.get(`${this.baseUrl}/export`, { responseType: 'blob', observe: 'response', }); } and I call it in the TS file like ...
Rishav Tandon's user avatar
0 votes
1 answer
1k views

If I have my headers set like this then I get a 415 returned from my API because the HTTP Request is sent with a content-type of text/plain let headers: HttpHeaders = new HttpHeaders(); If I place ...
Don Sartain's user avatar
0 votes
1 answer
231 views

The response time of the API call varies between 2 and 30 seconds. After initializing the API call, if the API call will take more than five seconds, at the time of the 6th second, I have to perform ...
srikanth's user avatar
25 votes
3 answers
31k views

In angular, we use HttpClient to make HTTP calls which return an observable, if we wanna use promises we can use lastValueFrom/firstValueFrom. Let's say we have: async getLast() { const get$ = this....
Matias's user avatar
  • 1,520
0 votes
2 answers
238 views

I am currently trying to implement a membership portal in which when I submit a form, I want to post the member and immediately retrieve the value of the member from the ID number that is entered. My ...
Nooh Ahamad's user avatar
1 vote
1 answer
854 views

It's possible to use Angular 8 http.get to get a page from the frontend itself ? My local frontend URL: https://192.168.0.177:4200/ I tried in a service: test(): Observable<string> { return ...
Nelson Teixeira's user avatar
0 votes
3 answers
3k views

I am getting this error when I am calling the api via Angular. However, when I call it via Postman, I am getting the desired response. I dont know what am I doing wrong. Below is the code that I have ...
Running Rabbit's user avatar
0 votes
1 answer
245 views

I've built an Angular application with my coworkers making an ASP.NET backend API that I will call to access data. In the beginning, we've used the HTTP link for communication but now the backend team ...
Stefan Srbljanin's user avatar
0 votes
1 answer
2k views

I made a very normal HTTP request to get one object from a JSON file. but I noticed I get all the file's data instead of the only needed object. following my code demonstrates how I made a class to ...
MOHAMED ABUELATTA's user avatar
0 votes
2 answers
2k views

I'm trying to apply Angular HTTP put using reactive forms for the first time. My problem is when I apply the following code I get an error of 404. The error indicates a server URL that is not found (...
MOHAMED ABUELATTA's user avatar
1 vote
1 answer
372 views

I am working with an API in an Angular NGRX app that requires I make multiple calls to get all the data I'm looking for. For example, I start off by requesting a list of groups GET http://api-path/my/...
joe_coolish's user avatar
  • 7,259
1 vote
1 answer
386 views

So, I'm trying to make a request to an API (for example the SWAPI API) In my app.module : ... ... import { HttpClientModule } from '@angular/common/http'; declarations: [ AppComponent, ... ...
Guillaume Lemer's user avatar
1 vote
1 answer
851 views

After an error-response from the server my app does not send any further requests. I'm sending a request with: getMachineRules(rules: Array<string>): Observable<RulesResults> { return ...
nik_kobe's user avatar
2 votes
2 answers
3k views

In my angular app, all the HTTP resources are automatically changed to https while fetching. I checked the server, and there are no automatic redirect settings configured to https. The following are ...
Vishnu S Kumar's user avatar
0 votes
1 answer
3k views

I have a service which calls the PokéAPI at https://pokeapi.co/api/v2/pokemon/. If you don't specify the Pokemon you want returned, the API will return a paginated list of resources, which contains ...
Mossi92's user avatar
  • 63
1 vote
1 answer
914 views

I have an application (called http-app) inside the main project, which I am testing angular communication service using HTTP, following this guide. At the assets folder there is a config.json file. ...
amimaro's user avatar
  • 303
0 votes
0 answers
129 views

My Code is :- accountBalance(response: any): Observable<any> { const header = new HttpHeaders({'Authorization': "Bearer " + token, 'Content-Type': '...
Srijib Sen's user avatar
0 votes
1 answer
150 views

Web Api Controller Method [Route("change-gross-profit")] [HttpPost] public IHttpActionResult UpdateGrossProfit(decimal grossProfit) { ...
Dhimant Bhensdadia's user avatar
1 vote
3 answers
5k views

I'm trying to send a blob to my server, but it wont work. I'm using the doctemplater library which creates a Blob. This blob is correct because I'm able to save to local file (with saveAs(...)). But ...
Lars's user avatar
  • 1,102
0 votes
1 answer
540 views

I am trying to make multiple params value for single value in Angular get request, but it returning array for the value here is my code. let params = new HttpParams; let prefectures = [01, 02] //...
Umar's user avatar
  • 55
0 votes
2 answers
2k views

I've tried to get value out from subscribe of boolean true/false but i can't get value out, here is what i used so far. My Old method for http post. this.http.post(HostedPathConst.HostedPath + `...
user avatar
0 votes
1 answer
359 views

I am trying to make an HTTP call to our legacy APIs. These APIs use basic authorization. When making a call from an Angular app, I have to pass this authorization token which is not a problem. My ...
Ali's user avatar
  • 95
0 votes
1 answer
2k views

I'm attempting to parse a single string response to JSON, but I'm getting an error. Unexpected token . in JSON at position 3 The string I'm trying to parse is simply 1.0.INDIVIDUAL I thought that ...
Web Develop Wolf's user avatar
-2 votes
2 answers
1k views

I am working with Angular7. When I make API call Angular application URL also appended to the URL const payload = { id: 1, name: 'ABC }; const httpOptions = { headers: ...
Gnik's user avatar
  • 7,508
1 vote
0 answers
158 views

Dumb question, but I have an application working on the old Angular-cli, that needs to be moved to the new cli, but after all my efforts, still can't get it to work. I am aware that the json parsing ...
Joseph Hughes's user avatar
2 votes
1 answer
1k views

There is a REST-service in my Angular 9 to handle all HTTP requests. When I shutdown the REST server there are errors in the console.log() but I'm unable to catch them in the service: return this....
Lars's user avatar
  • 1,102
0 votes
1 answer
777 views

HtmlCode where data are display. Key is passed as a parameter <div class="col-xs-12 col-md-6 col-md-offset-3" *ngIf="loadedPosts.length >= 1> <ul class="list-group"> <li class=...
Kevin Shah's user avatar
0 votes
1 answer
764 views

I’m trying to get a variable I declarated onmy header through back end, but this codes is not working: In my backend:(express + knex): async login(req, res) { const { user_name, ...
Erick Fraga's user avatar
0 votes
2 answers
312 views

I am working on angular app where I want to display my post which are coming from two different collection i.e is Public and private. Now I am making two http request and I am getting data but I am ...
tyler's user avatar
  • 329
0 votes
1 answer
307 views

I use Angular 9 for sending some headers such as page size and current page to my asp.net mvc core back end over IIS server . when my request is to http address every thing is OK ,but when I use https ...
Hossein Arbatan's user avatar
3 votes
3 answers
8k views

I try to send post request with angular but when i set content-type to application/json the request content-type always not set and the HTTP method always removed and all posted data removed from ...
Moneim's user avatar
  • 63
0 votes
1 answer
2k views

I am working in angular 4 using web api 2 my post call is not working doesn't hit api. The problem is that it doesn't even give me a single error. Here is my code registerUser() { this....
user avatar

1
2 3 4 5
20