• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: NgFor doesn’t display data

Resolved: NgFor doesn’t display data

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

Hi i have the project with spring boot, sql, angular. I have relations with one to many and I dont know how to display the second object in component html. My Componnent:
My Html:
My Json get:
And the “teams” does not display, if i change that to project.teams is display [object Object] also i try with | async but it not helped.
I am asking for help, I will be grateful

Answer:

It looks like Teams is an array so you need to specify an index.
Also, some notes. you are using ngfor for project which looks like an object. you probably meant to do it for Teams?

If you have better answer, please add a comment about this, thank you!

angular display html spring spring-boot
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: In a Pinescript v5 Strategy why is my bool not working?

02/04/2023

Resolved: net::ERR_HTTP2_PROTOCOL_ERROR by http get request angular 15.2

02/04/2023

Resolved: How do I stop the command from happening if the requirements for it to work aren’t sert Discord.js

02/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.