DEV Community

Looping over object properties with ngFor in Angular

Jaime Rios on May 08, 2018

This post was published originally in medium. Looping over object properties with ngFor in Angular Hello again, this is post is about an interesti...
Collapse
 
zerzerimohamed profile image
Mohamed Zerzeri

there's actually a little mistake in the end of the code :
goodResponse.push(evilResponseProps[prop]); must be modified to

goodResponse.push(evilResponse[prop]);

but this code helped me a lot, thanks a lot didn't know what to do without it ;)

Collapse
 
papaponmx profile image
Jaime Rios

Glad to help. Thanks for the feedback.