How can I detect keydown or keypress event in angular.js?

后端 未结 4 1232
渐次进展
渐次进展 2020-12-23 20:36

I\'m trying to get the value of a mobile number textbox to validate its input value using angular.js. I\'m a newbie in using angular.js and not so sure how to implement thos

4条回答
  •  -上瘾入骨i
    2020-12-23 21:19

    You can checkout Angular UI @ http://angular-ui.github.io/ui-utils/ which provide details event handle callback function for detecting keydown,keyup,keypress (also Enter key, backspace key, alter key ,control key)

    
    
    
    
    

提交回复
热议问题