Answers for "can i give variable id in angular from ts file"

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 "can i give variable id in angular from ts file"

Browse Popular Code Answers by Language