/
@maskito/angular
is a light-weighted library to use Maskito in an Angular-way. To get the most out of this guide, you should review the topic "Core Concepts" first.
[maskito]
directive. Use it when you have direct access to native input element.
Pass a predicate to maskito to find input element for you, if you do not have a direct access to it.
host.querySelector('input,textarea')
so that might be sufficient. Use custom predicate if you need custom logic. MaskitoDirective
formats value set programmatically with Angular forms. string
-type (not number
-type, not object
-type or etc.). However, you can sometimes need to store value without mask in Angular form control. This example demonstrates how easily any Angular Control Value Accessor (default one or any custom one from a third-party UI Kit) can be monkey-patched to achieve this goal. Control value:1000.42