ngx-international-phone-number icon indicating copy to clipboard operation
ngx-international-phone-number copied to clipboard

[ngClass] cannot be detect

Open Arios509 opened this issue 5 years ago • 1 comments

Hi there, i would like to ask about the problem that the Angular 8 [ngClass] this one cannot be add into the

 <international-phone-number  placeholder="Enter phone number" 
              [maxlength]="20" [defaultCountry]="'us'" formControlName="mobile" name="phone_number" 
              [ngClass]="{ 'is-invalid': f.mobile.touched && f.mobile.invalid }"></international-phone-number>
              <div *ngIf="f.mobile.touched && f.mobile.invalid" class="help-block">
                  <div *ngIf="f.mobile.errors.required">Your mobile is required</div>
                  <div *ngIf="f.mobile.invalid">Your mobile is invalid</div>

              </div>

I try, the error will come out, but the ngClass couldnt be detect.

Arios509 avatar Sep 27 '19 03:09 Arios509

@esoyke might fix this for you. https://github.com/esoyke/ngx-international-phone-number2 Put this there. He might help.

jek-bao-choo avatar Nov 11 '19 03:11 jek-bao-choo