Answers for "ionic angular Ngfor opbjects"

1

ionic ngfor object

//in the Component pass Object to template:

Object = Object;
// then in the template:

<div *ngFor="let key of Object.keys(objs)">
   my key: {{key}}
   my object {{objs[key] | json}} <!-- hier I could use ngFor again with Object.keys(objs[key]) -->
</div>
Posted by: Guest on May-27-2020

Browse Popular Code Answers by Language