Skip to main content
cngx-src documentation

withPhoneDefaultRegion

Functionforms/input

projects/forms/input/input-config.ts

Description#

Sets the app-wide default selected region (ISO key, e.g. 'AT') for CngxPhoneInput, instead of the first country in the list.

  • The region must match a CngxPhoneInput country region; an unknown region is ignored (the first country stays selected).
  • A per-instance [country] binding overrides it.
provideInputConfig(withPhoneDefaultRegion('AT'));

Signature#

withPhoneDefaultRegion(region: string)

Parameters#

@paramregionstring

Returns#

InputConfigFeature