Created
April 6, 2016 07:54
-
-
Save hsleonis/764ffa4e4e4983dbc9f8242af4b31625 to your computer and use it in GitHub Desktop.
Angular watch input value
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // <input ng-model='pat' ng-pattern='false' /> | |
| $scope.name=''; | |
| $scope.$watch('name', function() { | |
| $scope.name = $scope.name.toLowercase(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment