Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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>
 
PREVIOUS NEXT
Tagged: #ionic #ngfor #object
ADD COMMENT
Topic
Name
4+2 =