Answers for "add dynamic value to id attribute in angular 8"

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

Code answers related to "add dynamic value to id attribute in angular 8"

Code answers related to "Javascript"

Browse Popular Code Answers by Language