Skip to content
Related Articles

Related Articles

AngularJs | uppercase Filter
  • Last Updated : 12 Apr, 2019

The uppercase Filter in AngularJS is used to change a string to uppercase string or letters.

Syntax:

{{ string | uppercase}}

Example:




<!DOCTYPE html>
<html>
  
<head>
    <title>
      uppercase Filter
  </title>
    <script src=
    </script>
</head>
  
<body ng-app="app"
      style="text-align:Center">
    
    <h1 style="color:green">
      GeeksforGeeks
  </h1>
    <h2>
      uppercase Filter
  </h2>
    <div ng-controller="geek">
        <p>
            <span style="color:green">
              {{msg | uppercase}}
          </span> is the computer 
          science portal for geeks.
            <p>
    </div>
    <script>
        angular.module('app', [])
            .controller('geek', 
                        ['$scope', function($scope) {
                $scope.msg = 'GeeksforGeeks';
            }]);
    </script>
</body>
  
</html>


Output:
uppercase




My Personal Notes arrow_drop_up
Recommended Articles
Page :