Answers for "add dynamic id to list angular 2"

1

applying ids for ngfor

<li *ngFor="let episode of episodes; let i = index">
     <div id="{{ 'wave' + i }}"></div>
</li>
Posted by: Guest on May-05-2020

Browse Popular Code Answers by Language