How to prevent code repetition in html file

<ion-item text-wrap>
  		This text changes  

i have to write the above code 50 times to show different text.
can anyone please suggest me how to reduce the size of the html file.
please provide the code, really need it.
Thanks in advance :slight_smile:

<ion-item text-wrap *ngFor="#item of items">

thanks for the reply sir โ€ฆcan you provide the .js code also.

I donโ€™t know that you use. For TS:

public items: Array<string> = ['foo', 'bar'];

I recommend you to read the Angular 2 documentation.

1 Like