phone element renders a phone-number input with a country selector. It stores and emits phone numbers in E.164 format.
Factory
Example
Options
onlyCountries: restrict the selector to a specific set of countries.preferredCountries: pin these countries to the top of the selector list; the rest follow alphabetically.
Value
e164 is the phone number in E.164 format (for example, '+14155551234'); countryCode is the ISO 3166-1 alpha-2 country the shopper picked in the selector (for example, 'US'). The value is null until the shopper enters a valid number.
FieldError.field
Always 'phone'.