All Questions
404
questions
-1
votes
1
answer
51
views
Cannot pass value from service to component
I'm learning to use Angular.
I've done some API with Spring-boot and I've created some components in Angular to view them, but I can't view anything.
I've created in angular a Service to do all the ...
0
votes
1
answer
37
views
Angular HttpErrorResponse 403 on Visual Studio Code console
I'm using Angular 17.3.8 with a non-standalone project, and I'm encountering an error in my VSCode console that I can't understand.
I've created a login system with cookies, and it works fine. The ...
-1
votes
0
answers
28
views
With angular, IF and ELSE functions bypassing GET request?
(Context)
In TS side of the code there are 2 functions that are triggered by a button click, a GET request and a Comparator
The Get Request (which is called inside the comparator) pulls information ...
1
vote
2
answers
56
views
Call a Rest API without FE application for every 10mins
I want to schedule a GET API call every 10 minutes without using a front-end application.
Note: Unable to use the scheduler, because of my requirements.
Consider my API is https://xvyz.com/keep-alive
...
1
vote
2
answers
55
views
HTTP Get request not sending out to the provided URL
I'm new to angular and I was building this system from scratch. I wrote the the following method to sed a GET request to an endpoint in the back end. The method is called in the ngOnInit method.
...
0
votes
1
answer
56
views
webapi core [FromQuery] dto model ignoring [Required(AllowEmptyStrings = true)]
i have a controller endpoint with two parameters
sent from body
sent as a query string parameters with dtoModel
i using [FromQuery] for the second object ,becouse i cannot pass two object in the ...
0
votes
0
answers
52
views
Angular httpClient - How to get list of images from spring web api
I would like to get a list of images from my spring boot web API and display it into my angular front.
For now, I can get a single image and display it into my angular front end.
Below you ll find the ...
0
votes
0
answers
78
views
Vercel cannot get a data from json. Angular
I have this error :
message: "Http failure response for http://localhost:4200/assets/data/trending-movies.json: 404 Not Found"
in console.
In local environment I have no problem when ...
0
votes
1
answer
52
views
Angular subscription to service is not called a 2nd time
I have a working service shared among different components. It works well in any component. The issue is once it has been called in any component, if I call it again, in the same component or in ...
1
vote
1
answer
46
views
Get a single value from an Object returned in Angular
I have service that gets all the data from the database and in the component , I am not able to return a single value from the object it is returning.Following is to get data in the service. I want to ...
0
votes
0
answers
51
views
Array is still empty after GET request
I have an < ul> and each < li> contains the name, age, market value etc. of a player. These attributes are coming from a database. The players are shown in the browser properly, but in ...
0
votes
1
answer
79
views
angular http.get<boolean> doesn't return boolean properly
i implemented a get method in my spring boot applicaten that takes an email adress and returns a boolean true if the email adress is already persisted and false if it isn't.
i tested the method with ...
0
votes
1
answer
94
views
Async API call returning an array in Angular with typescript
I have a code that shall return a list of products from an API.
Once I retrieve the list I have some logic. I must execute this code as async for other reasons.
First I defined an Interface Type that ...
0
votes
1
answer
134
views
How to do a Async get() request sending an array of ids, but don't want to loop through the whole async get request for array
for (let i = 0; i < this.selectedworksheets.length; i++) {
specific_templateRowId = await this.httpClient.get < Array<number>> (`${GLOBAL.BASE_URL}/templaterow/${this....
0
votes
1
answer
2k
views
CORS error when redirecting to Stripe checkout
I am trying to create a basic Angular app where you can choose from 3 different plans and check out with Stripe.
What happens now is that when one of the buttons is pressed, nothing happens and I get ...