ng2-tel-input icon indicating copy to clipboard operation
ng2-tel-input copied to clipboard

ng2-tel-input question

Open mattsson99 opened this issue 6 years ago • 2 comments

Thanks for a very good wrapper. I have some questions. How can i easily just got european countries in my list? Is there any way to get the dialcode into the input field when i choose a country?

mattsson99 avatar Apr 05 '18 06:04 mattsson99

For custom country list you can check below example of orignal package:- https://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/only-countries-europe.html In this package, you can provide this as

[ng2TelInputOptions]="{initialCountry: 'in', onlyCountries: ['al', 'ad', 'at', 'by', 'be', 'in']}"

For more info, you can check the orignal package.

gauravsoni119 avatar Sep 08 '18 18:09 gauravsoni119

I achieved dialcode with nationalMode: false option.

akvaliya avatar Jan 18 '20 11:01 akvaliya