Angular 4 ng-repeat implementation

后端 未结 1 651
情书的邮戳
情书的邮戳 2021-01-15 05:53

I\'m trying to implement a very basic ng-repeat directive for a Ionic 3 project using Angular 4. I simply don\'t understand why this code is not returnig anything. I guess t

相关标签:
1条回答
  • 2021-01-15 06:56
    <ion-content padding>
        <ion-list>
          <ion-item *ngFor="let item of itemsList">
            <h3> name: {{item.name}}</h3>
            <h3> name: {{item.position}}</h3>
          </ion-item>
        </ion-list>
    </ion-content>
    

    Working code is https://gitlab.com/ugur.ayan/temp-ionic/

    0 讨论(0)
提交回复
热议问题