THE INDIA LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

AngularJS uppercase Filter


Example

Display the text in uppercase letters:

<div ng-app="myApp" ng-controller="caseCtrl">

<h1>{{txt | uppercase}}</h1>

</div>

<script>
var app = angular.module('myApp', []);
app.controller('caseCtrl', function($scope) {
    $scope.txt = "Hello World!";
});
</script>
Try it yourself »

Definition and Usage

The uppercase filter converts a string to uppercase letters.


Syntax

{{ string | uppercase}}

Related Pages

AngularJS Tutorial: Angular Filters