gauravsoni119 / ng2-tel-input

MIT License
56 stars 57 forks source link

How to use static methods like getCountryData? #32

Open pabbu1990 opened 5 years ago

pabbu1990 commented 5 years ago

I want to use getCountryData() static function mentioned in intl-tel-input documentation to set localized countries. Wondering how I can do it in this angular plugin. Did anyone try this?

LuisRicoF commented 5 years ago

I have been trying and managed to get the list:

telInputObject(obj) {
     console.log(obj);
     this.countriesList = obj['p']
  }