I want to use phone mask on my input value. I'm bad with Angular 2 experience. How to apply input mask like +7(999)999-99-99 like it was in jquery inputMask plugin?
You can use https://igorescobar.github.io/jQuery-Mask-Plugin/
For Angular2 https://www.npmjs.com/package/ng2-input-mask
Like this;
$('#phone').mask("+0(000)000-00-00")
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> <input type="text" id="phone"/> <script type="application/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.10/jquery.mask.js"></script>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.