Answers for "typescript dynamic id"

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
0

add dynamic value to id attribute in angular 8

<div [id]="'demo'+this.dynamic_id"></div>
Posted by: Guest on June-17-2020

Browse Popular Code Answers by Language