Angular 4 Data Binding over ng-repeat

后端 未结 1 1325
臣服心动
臣服心动 2021-01-17 11:28

I\'ve recently switched to Angular 4 from Angular 1 and lots of things seem to be new to me now. One of them seems to relate to data-binding. In the old version, I would dec

相关标签:
1条回答
  • 2021-01-17 11:52

    You should use ngFor instead of ng-repeat

    <ol>
      <li *ngFor="let item of testarr">{{item}}ITEM Found!</li>
    </ol>
    
    0 讨论(0)
提交回复
热议问题