When we type in textbox ng-keyup event will call the lUpperCase(text) function which convert the uppercase character to lowercase.Text is a variable to which textbox is bind.

<!DOCTYPE html> <html xmlns=""> <head> <title>Welcome to LearnKode - A code learning platform</title> <script src=""></script> </head> <body ng-app="clickExample"> <div ng-controller="ExampleController"> Lower Case: <input type="text" ng-model="text" ng-keyup="UpperCase(text)" /><br /> </div> <script> var app = angular.module("clickExample", []); app.controller('ExampleController', ['$scope', function ($scope) { $scope.UpperCase = function (txt) { $scope.text = txt.toLocaleUpperCase(); } }]); </script> </body> </html>