i have a custom object array. but i am unable to print the values inside for loop
<ion-item-group *ngFor=“let g of tp.LegList”>
{{g.Name}}
giving some undefined error
while if i try to
{{g}}
then [object object] is printed
i have a custom object array. but i am unable to print the values inside for loop
<ion-item-group *ngFor=“let g of tp.LegList”>
{{g.Name}}
giving some undefined error
while if i try to
{{g}}
then [object object] is printed
You can use the pipe json like this in your html to view the plain object in a string
{{ g|json }}