简体   繁体   English

更改输入文本值-Angular2

[英]Change Input Text Value- Angular2

I am working on angular 2 now... and I donno how to do this. 我现在正在研究角度2 ...,我不知道该怎么做。 In text box I need to type input value as 999-999-9999 format, While typing it should convert into xxx-xxx-9999. 在文本框中,我需要以999-999-9999格式输入输入值,在输入时应将其转换为xxx-xxx-9999。 Again clicking on text box it should display it actual value. 再次单击文本框,它将显示它的实际值。

If some one know how to do please help. 如果有人知道该怎么做,请帮忙。 Thanks in advance. 提前致谢。

使用这个: -Angular2-text-mask

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM