All Questions
209 questions
1
vote
1
answer
57
views
Angular 8 - Display array data in table
I have JSON in the below format.
[
{
"group": "A",
"teams": [
{
"id": 1,
"name": "France"
},
{
...
0
votes
1
answer
33
views
Set value to Array inside FormControl
I have an FormControl that's declared as an Array of a specific type and I need to populate it with another array of the same type but, I can't figure out how to do so.
Here's my code:
profileData = ...
1
vote
1
answer
47
views
How to reuse a parameters on sort?
I have an array of objects, inside this objects i have some properties that i'm sorting to show on a table when i click on the header.
Since i have more than one column with strings, more than one ...
0
votes
1
answer
78
views
BehaviourSubject is not re-rendering my template
After a couple of days trying different things, the time has come to ask the question at the community.
I am trying to re-render a template in Angular after clicking/selecting a cluster pointer on an ...
1
vote
2
answers
103
views
array.reverse() in my *ngFor don't work in production
I don't know why, when I interact with my textarea, my _messagesList is reverse ASC and DESC everytime.
<div class="chat__messages">
<div *ngFor="let ...
0
votes
2
answers
521
views
how to loop through json object to get key and value, and display them in angular html?
I need to build an email sender by using nodemailer. I am sending the json object below and want to display the previous and current value changes with a pair of key and value in angular html.
<...
0
votes
1
answer
50
views
How to make each object in array its own element [duplicate]
I have an array of objects that I am using to make a table in Angular. The table works great and adds the data correctly. I am now wanting to be able to edit each object within the table. For example ...
0
votes
1
answer
196
views
A group of checkboxes in reactive forms Angular
I'm creating a contact form where I added some checkboxes. User can select multiple options and should select at least 1 box.
I need to pass all the selected checkboxes to api data But I don't know ...
0
votes
2
answers
52
views
how show the value of an specific key in a nested array of json in the html using angular?
i'm new using angular trying to create a simple crud, my problem is that i consume a api from an spring boot server and there i have 3 tables related to each other, but my problem is that when i try ...
0
votes
3
answers
648
views
Compare to arrays and display the matching values in table in Angular
`I have two objects of arrays and need to compare both the arrays and display the matching values in table format, I have tried by looping the both arrays and compared them with Id and here matched ...
0
votes
1
answer
1k
views
Iterate over object and display it in table Angular (array in array)
I have an api that returns this json.
Student = [
{"name": "Maha",
"age": "18",
"sibling": []
},
{"name": "Jensen",
"age&...
1
vote
2
answers
135
views
How to map an array and delete the corresponding one
I have an array called responseData, it serves for me to show the available card options on the screen
public responseData = [
{
id: 1399,
pessoa_id: 75898,
created_at: '2022-11-08T16:59:59....
1
vote
2
answers
62
views
Don't fetch the right data format through http request
I am working with Angular 8 for a web app. So I have a backend in which I have implemented some get http call. They all should return an array of objects.
My array of object has an interface of this ...
-1
votes
1
answer
679
views
How to create a HTML table using *ngFor?
Given the following arrays that have the same size:
Compnent.ts
studentName=['Jhon',Johanne','Nadia'];
studentAge=[16,15,16];
studentScore=[10,7,9];
NB: These tables have always the same size but ...
0
votes
0
answers
49
views
How to loop through complex nested objects and double Arrays Angular 10
I have class A and i want to print out the amount of tables that the interface B has in its array of People. I also want to print out the amount of rows to each table that interface People has in its ...