List is populating dynamically and width of each list text might vary ..it is small to larger text as well. Here I would like to display 'Edit' link should display after the last list item. Here is the sample code I tried
<ul
class=""
*ngIf=""
>
<ng-container
*ngIf="">
<li *ngFor="let emppData of getEmpData(); let i = index; let test = test11123">
<span class="day-label">{{ emppData.day }}</span>
<span *ngIf="emppData.emppData">{{ emppData.empLabel }}</span>
</li>
<li *ngIf="isTaestable$ | async">
<button
id="idTestButton"
[disabled]="false"
buttonSize="md"
buttonStyle="link"
aria-label="Edit"
(click)="testEmpData()"
>
{{ edit }}
</button>
</li>
</ng-container>
</ul>
Sample output:
Sunday AAAA
Monday BBBB
Tuesday CCC. 'Edit'