Need to have a placeholder like 'Office Phone' in 'ngx-intl-tel-input' before the country code selection and number input happens
<form #f="ngForm" [formGroup]="phoneForm">
<div class="wrapper">
<ngx-intl-tel-input
[cssClass]="'custom'"
[enableAutoCountrySelect]="true"
[enablePlaceholder]="true"
[customPlaceholder]="Office Phone"
[searchCountryFlag]="true"
[searchCountryField]="[
SearchCountryField.Iso2,
SearchCountryField.Name
]"
[selectFirstCountry]="false"
[maxLength]="15"
[phoneValidation]="true"
[separateDialCode]="separateDialCode"
[numberFormat]="PhoneNumberFormat.National"
name="phone"
formControlName="phone"
>
</ngx-intl-tel-input>
</div>
</form>
Trying to set it using below two fields but the still the input box looks empty
[enablePlaceholder]="true"
[customPlaceholder]="Office Phone"
Currently using Angular 12.Kindly suggest if any other library could give the desired result.
[enablePlaceholder]="true"
customPlaceholder="Mobile Number"
Placeholder without the property binding works.
- Credits to @Fazeel Ashraf