mareczek/international-phone-number

Why do you need `$timeout`?

Closed this issue · 1 comments

Hey,

I'm curious why you wrap some bits of functionality in a $timeout callback.
Thanks.

See: #4

Triggers phone number masking on the preset value with which the field initiates. Without $timeout, the masking doesn't apply, because there's asynchronous conflict with sequence when intl-tel-input is loaded vs. when this directive is loaded.