You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to set the preferred country depending on what i get back from the ip address. Im checking the users IP in the afterViewInit to get the country the user is in. Im trying to set that country as the preferred country for the ngx-mat-intl-tel-input component instead of hardcoding it in.
Any suggestions as to how to make that possible?
I tried making an observable and async it, but that doesnt seem to work here unfortunately.
The text was updated successfully, but these errors were encountered:
Unfortunately current implementation doesn't accept any on-changes handler for an input property preferredCountries.
I guess in such case the only way is to fire ChangeDetectorRef once you have the new set of countries ready.
Im trying to set the preferred country depending on what i get back from the ip address. Im checking the users IP in the afterViewInit to get the country the user is in. Im trying to set that country as the preferred country for the ngx-mat-intl-tel-input component instead of hardcoding it in.
Any suggestions as to how to make that possible?
I tried making an observable and async it, but that doesnt seem to work here unfortunately.
The text was updated successfully, but these errors were encountered: