DEV Community

Discussion on: How to loop through object properties with ngFor in angular

Collapse
 
leydar profile image
leydar • Edited

You can use the keyvalue pipe to split the object into key/value pairs where the key is property name (skill, education, experience) and the value is the object (name, start_date...)

*ngFor="let property of object | keyvalue"
{{property.key}}: {{property.value.name}}
Enter fullscreen mode Exit fullscreen mode
Collapse
 
sandeepbalachandran profile image
Sandeep Balachandran

Very much appreciating the effort to share the information