Skip to main content

All Questions

Tagged with
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" }, { ...
Er. IT's user avatar
  • 27
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 = ...
Alfredo Marin's user avatar
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 ...
starr's user avatar
  • 43
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 ...
Vanonckelen Dieter's user avatar
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 ...
Victor Nardella's user avatar
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. <...
Anon_J's user avatar
  • 59
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 ...
Isaiah_62's user avatar
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 ...
Muhammad Shahzaib's user avatar
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 ...
Kevresh's user avatar
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 ...
Danny's user avatar
  • 25
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&...
asdf's user avatar
  • 1
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....
Leonardo Lima's user avatar
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 ...
Caterina's user avatar
-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 ...
Inf Jhoanny's user avatar
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 ...
user1171171's user avatar

15 30 50 per page
1
2 3 4 5
14