HTML TYPESCRIPT mobileFieldMaxlength: string = '14'; setMobileFieldMaxlength(country: string) { if (country === 'US') { this.mobileFieldMaxlength = '14'; } else if (country !== 'US') { this.mobileFieldMaxlength = 'unset'; } ╔ÁdetectChanges(this); }