Lowercase & Uppercase – AngularJS (Part 2)



<html ng-app>
        <head>
               <title>Hello World</title>
               <script type=”text/javascript” src=”//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js“></script>

       </head>
       <body>
             <input type=”text” ng-model=”someVariable” />
             <h1>Hello {{someVariable}}</h1>

              <h4>Uppercase : {{someVariable| uppercase}}</h4>
              <h4>Lowercase : {{someVariable| lowercase}}</h4>
       </body>
</html>

Output : 

 

Leave a Reply