Tutorials References Exercises Videos Menu
Free Website Get Certified Pro

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