AngularJS Uppercase Filter Example

  Keywords : Angularjs convert string to uppercase example, Angularjs capitalize filter example, Angularjs convert textbox text to uppercase example

Example

 
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
AngularJs uppercase filter Example
</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<script>
var app = angular.module("AngularuppercaseApp", []);
app.controller("uppercasectrl", function ($scope) {
$scope.users = [{
name: "Anil Singh",
age: 30
}, {
name: "suresh dasari",
age: 29
}, {
name: "Rohini Alavala",
age: 29
}, {
name: "praveen kumar",
age: 24
}];
});
</script>
</head>
<body ng-app="AngularuppercaseApp">
<div ng-controller="uppercasectrl">
<h2>AngularJS Uppercase Filter Example</h2>
<ul ng-repeat="user in users  ">
<li>{{user.name | uppercase }}</li>
</ul>
</div>
</body>
</html>


Result