angularjs force uppercase in textbox

前端 未结 14 1828
情歌与酒
情歌与酒 2020-11-30 20:47

I\'ve tried using the uppercase filter but it does not work. I\'ve tried doing it two ways:


<         


        
14条回答
  •  情书的邮戳
    2020-11-30 21:08

    You cannot make filter on ng-model since it has to be assignable. the workaround is either parser, or simply ng-change.

    
    

    This should work.

提交回复
热议问题