As a novice in Angular 8, I am facing some challenges with a section of my code. Specifically, I am attempting to utilize the ngIf Else condition within a div to display a button based on the retrieved value.
<div class="form-group">
<div class="row">
<div class="input-group col-12 md-12">
<div class="input-group-prepend">
<label for="situation" class="input-group-text">Current Situation</label>
</div>
<select class="custom-select" id="situation" formControlName="situation" name="situation" [(ngModel)]="employed">
<option value="employed" name="employed">Employed(including unpaid family workers and apprentices)</option>
<option value="employed" name="employed">Employed but is temporarily absent(leave without pay, parental leave etc.)</option>
<option value="unemployed"> Unemployed, looking for work(job seekers)</option>
<option value="retired"> Retired </ option >
<option value="unable">Unable to work(disability)</option>
<option value="domesticWorker"> Woman or man working in their own household(domestic worker)</option>
<option value="student"> Pupil or Student</option>
<option value="preschool"> Pre - school child</option>
<option value="other"> Other(specify) </ option >
</select>
</div>
</div>
</div>
<ng-container *ngIf="employed; then trueCondition else elseTemplate" >
<div class="btn-toolbar">
<button class="btn btn-primary" data-toggle="modal" data-target="#householdsFormModal2" data-dismiss="modal" type="button">NEXT</button>
</div>
</ng-container>
<ng-template #elseTemplate>
<div class="btn-toolbar">
<button class="btn btn-primary" data-toggle="modal"
data-dismiss="modal" type="button"
[disabled]="householderForm.invalid">SUBMIT</button>
</div>
</ng-template>
Even when selecting other options, my button remains in the "Next" state instead of changing to "Submit." Can anyone assist me with this issue?