Timeline for Angular convert object to array
Current License: CC BY-SA 4.0
Post Revisions
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 9, 2021 at 14:54 | vote | accept | Community Bot | ||
| Jul 9, 2021 at 9:49 | history | edited | user16356529 | CC BY-SA 4.0 |
update code add keyvalue pipe
|
| Jul 9, 2021 at 9:28 | answer | added | Ling Vu | timeline score: 0 | |
| Jul 9, 2021 at 9:20 | answer | added | Chris | timeline score: 2 | |
| Jul 9, 2021 at 9:17 | comment | added | user16356529 | i already try keyvalue pipe but i don't like this way | |
| Jul 9, 2021 at 9:12 | comment | added | archelite |
summaryArray's type is Isummary[] which an object type. So you are trying to loop on a Object Array, I guess it's normal if it display "object Object" in your html. If you want to display values which are inside, try with a second ngFor and use keyvalue pipe : angular.io/api/common/KeyValuePipe
|
|
| Jul 9, 2021 at 8:57 | history | asked | user16356529 | CC BY-SA 4.0 |