Following is my html:
<div class="form-row">
<div class="form-group col-md-3">
<input [(ngModel)]="model.adminVerificationEndDate" name="adminVerificationEndDate"
type="text" autocomplete="off" class="form-control form-control-sm"
[bsConfig]="datePickerConfig" bsDatepicker [minDate]="currentDate" required/>
</div>
</div>
I have initialized all the variables used in my ts file. I have bound the model property within the form tag by using ngModel, I have also used the name attribute.
But still getting the error -If ngModel is used within a form tag, either the name attribute must be set or the form-control must be defined as 'standalone' in ngModelOptions.
What I am missing here?
I have also attached the screenshot of my console throwing that error.
Any kind of help/suggestions is appreciated.


