I have an Angular application I'm working on, in this application I have generated a small component for listing files and I'm working on some icons for editing on of the fields. However I've encountered an issue with the fa-icon
component. I have two icons side by side. The first refuses to allow a closing tag, the second requires it. (I assume the second is actually being nested at this point) I cannot apply a closing tag to both without it giving me this error:
My Template:
<form [formGroup]="form">
<mat-grid-list class="grid" cols="4" rowHeight="32">
<mat-grid-tile class="tile" mat-grid-tile-header>{{type}}</mat-grid-tile>
<mat-grid-tile class="tile" mat-grid-tile-header>
<span [hidden]="editing" (click)="editing = true">{{name}}</span>
<form [formGroup]="edit" [hidden]="!editing" ng-submit="editing = false">
<input type="text" formControlName="name" ng-required (keyup)="onKeyUp($event)" />
<fa-icon class"confirm" [icon]="faConfirm" (click)="onSubmit()"></fa-icon>
<fa-icon class="cancelIcon" [icon]="faConfirm" (click)="onCancel()"></fa-icon>
</form>
</mat-grid-tile>
<mat-grid-tile class="tile" mat-grid-tile-header>{{scanDate}}
</mat-grid-tile>
<mat-grid-tile class="tile" mat-grid-tile-header>
<mat-checkbox formControlName="delete" aria-label="Delete"></mat-checkbox>
</mat-grid-tile>
</mat-grid-list>
</form>
I cannot for the life of me figure out why this occurs. Any thoughts?
Angular: 9.1.12
@fortawesome/angular-fontawesome: 0.5.0