डाउनलोड पी.डी.एफ. ई-बुक्स
AJS - Filters uppercase

uppercase ये filter; string को uppercase में convert किया जाता है |

Syntax for Uppercase Filter in AngularJS

{{string | uppercase}}


Example for uppercase Filter in AngularJS

Source Code :
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
</head>
<body>

<div ng-app="app" ng-controller="ctrl">
{{str | uppercase}}<br />
</div>

<script>
var myapp = angular.module("app", []);
myapp.controller("ctrl", function($scope){
	$scope.str = "hello world";
});
</script>

</body>
</html>
Output :
{{str | uppercase}}