I have created a form with Reactive Forms in Angular.
Actually I have this display:
<div class="center" appMcard>
<form [formGroup]="GroupRMPM_FG">
<div formArrayName="GroupId_Name" *ngFor="let control of GroupRMPM_FG.controls.GroupId_Name.controls; let i= index">
<input type="text" pInputText [formControl]="control.controls.Group_Id_Name"/>
<button pButton type="button" class="delete-btn " *ngIf="GroupRMPM_FG.controls.GroupId_Name.controls.length > 1" (click)="deleteGroup(i)" icon="fa-minus" >
</button>
</div>
<button pButton type="button" (click)="addNewGroup()" icon="fa-plus" class="add-btn"></button>
</form>
</div>
I would like my button to be aligned right to the last minus button.
I have added a class in ngfor div:
<div formArrayName="GroupId_Name" class="formcontainer" *ngFor="let control of GroupRMPM_FG.controls.GroupId_Name.controls; let i= index">
here's the CSS
.formcontainer {
display: inline-block;
}
But still not having what I want:
How can I get the "+" icon at the right of the last minus button ?

