Angular *ngfor: How to interate over an object

Angular *ngfor: How to interate over an object


Let’s suppose we receive from an api an object like:

*ngfor does not handle it out of the box, yet.
(I’ve seen some proposal on github)

The solution is to use a pipe.

If you use ionic-cli

Template

Controller
//nothing special here

Module

Pipe


 

Done 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *