<form [formGroup]="planesFormGroup" (ngSubmit)="cachePlanes()" 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-sm btn-outline-info bg-light"> Cache Planes </button> </form>