<form [formGroup]="planesFormGroup" (ngSubmit)="acceptPlanes()" class="mb-2"> <h4 class="pt-2 border-top"> Planes </h4> <div class="w-100" *ngFor="let plane of getPlaneKeys()"> <label><input type="checkbox" [formControlName]="plane" value="{{plane}}" checked/>{{plane}}</label> </div> <button type="submit" class="btn btn-success btn-sm"> Accept & Archive Selected Planes </button> </form>