Tutorials References Exercises Videos Menu
Free Website Get Certified Upgrade

AngularJS uppercase Filter


Display the text in uppercase letters:

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

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


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

Definition and Usage

The uppercase filter converts a string to uppercase letters.


{{ string | uppercase}}

Related Pages

AngularJS Tutorial: Angular Filters