In the world of programming, each platform has its own way of handling lists. For example, Android uses RecyclerView
, WPF uses ListView
, and in Ionic, we have ion-list
. If you have a list of strings like this:
Animals:string[] = ["Dog", "Cat", "Human", "Crab"];
How can you bind this list to an ion-list and display all four items? I attempted the following code but it didn't produce the desired result.
<ion-list [(ngModel)]="Animals"/>
</ion-list>