In angular-imask how do I get the IMask class?

Using Angular-IMask, I’m programatically updating the field that has IMask. So I’m getting the error:

“Element value was changed outside of mask. Syncronize mask using mask.updateValue() to work properly.”

How can I get imask object so I can call updateValue() ? I set the component only on the template, so I don’t have any object in the component I can access.