gauravsoni119 / ng2-tel-input

MIT License
56 stars 57 forks source link

After updating to latest version functions stopped working #53

Closed akvaliya closed 4 years ago

akvaliya commented 5 years ago

I was using older version in my angular 7 project.

I just updated to latest versions & it's giving me errors in functions like setNumber.

this.objTelInput.intlTelInput("setNumber", this._contactNumber); This is how i was using before where this.objTelInput is a object received from intlTelInputObject event.

Now i am getting this error MaterialIntlTelInputComponent.html:5 ERROR TypeError: this.objTelInput.intlTelInput is not a function

Can anyone tell me what is changed in latest version? How to access methods like setNumber, getNumber?

bendg25 commented 5 years ago

Same error for me, on latest Angular 8

gctom57 commented 5 years ago

Hello,

For me what's worked is doing this.objTelInput.setNumber(this._contactNumber);

Regards

akvaliya commented 5 years ago

Thanks. Looks like syntax is changed for using functions.