Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display array data in angular

I am new to angular. I have array data. I want to display data on my webpage.

my question is how to print data. the data showing in console.log().

My console.log screenshot

enter image description here

like image 975
Harry Avatar asked Jul 17 '26 15:07

Harry


1 Answers

You can iterate over the array in a webpage using *ngFor directive of Angular for example -

<div *ngFor='let item of arrayName'>
  {{item?.propertyName}}
</div>

Working Example

  • For more detailed info please refer official docs
like image 190
Pardeep Jain Avatar answered Jul 19 '26 08:07

Pardeep Jain



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!