Open dev-mfm opened 7 years ago
In case the below code the [equalTo] do not work
<div class="col-md-6"> <label for="pass" class="control-label "> كلمة المرور <span class="required">*</span> </label> <input type="password" class="form-control" required id="pass" #pass="ngModel" [(ngModel)]="editTenant?.adminUser.password" name="pass"> <span *ngIf="pass.errors?.required && pass.touched" class="required">يجب إدخال كلمة المرور</span> </div> <div class="col-md-6"> <label for="passconf" class="control-label"> تأكيد كلمة المرور<span class="required">*</span></label> <input type="password" class="form-control" id="passconf" #passconf="ngModel" [(ngModel)]="passwordConfirm" name="passconf" [equalTo]="pass"> <span *ngIf="passconf.dirty && passconf.errors?.equalTo" class="required"> كلمة المرور لا تطابق تأكيد كلمة المرور </span> </div>
I have to wrap the above code with something like this
<div class="form-group"> ......... </div>
In case the below code the [equalTo] do not work
I have to wrap the above code with something like this