I've tried using the uppercase filter but it does not work. I've tried doing it two ways:
<input type="text" ng-model="test" uppercase/>
and
<input type="text" ng-model="{{test | uppercase}}"/>
The 2nd triggers a javascript error:
Syntax Error: Token 'test' is unexpected, expecting [:]
I want the text to be forced to uppercase as the user types in the textbox.
How can I do that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…