I am using ngx-intl-tel-input for phone number validation in my Angular project.
<form #f="ngForm" [formGroup]="phoneForm">
<ngx-intl-tel-input
[cssClass]="'custom'"
[preferredCountries]="['us', 'gb']"
[enablePlaceholder]="true"
[enableAutoCountrySelect]="true"
[value]="'+91 8888888888'"
name="phone"
formControlName="phone"></ngx-intl-tel-input>
I need to set value for the field which is coming from server.
I have used [value]
attribute, but it doesn't seem to be working.