Closed Rogermax closed 1 year ago
Support to pass a formControl:
Solves #75 #87
<mat-select-country appearance="outline" label="Country" [language]="languageSelected" [autocomplete]="'no'" [showCallingCode]="showCallingCode == 'true'" [formControl]="countryMandatoryFormControl" [cleareable]="true" [error]="'Mandatory field'" (onCountrySelected)="onCountrySelected($event)" > </mat-select-country>
countryMandatoryFormControl = new FormControl(null, [Validators.required]); ngOnInit(): void { this.countryMandatoryFormControl.valueChanges.subscribe((country) => { console.log( "this.countryMandatoryFormControl.get('country').valueChanges", country ); }); }
Support to pass a formControl:
Solves #75 #87