AngularJs uppercase Filter (original) (raw)
Last Updated : 05 Sep, 2022
The uppercase Filter in AngularJS is used to change a string to an uppercase string or letters.
Syntax:
{{ string | uppercase}}
Example: This example describes the use of the uppercase Filter in AngularJS.
HTML `
uppercase FilterGeeksforGeeks
AngularJS uppercase Filter
{{msg | uppercase}} is the computer science portal for geeks.
<script>
angular.module('app', [])
.controller('geek',
['$scope', function ($scope) {
$scope.msg = 'GeeksforGeeks';
}]);
</script>
`
Output:
Example 2: This example describes the use of the uppercase Filter in AngularJS by transforming the entered text to uppercase.
HTML `