AngularJS | angular.lowercase() Function
The angular.lowercase() Function in AngularJS is used to convert the string into lowercase. It can be used when user wants to show the text in lowercase instead of uppercase or one wants to compare two strings.
Syntax:
angular.lowercase(string)
Example: In this example the string is converted into lowercase.
<html ng-app="app"> <head> <script src= </script> <title>angular.lowercase()</title> </head> <body style="text-align:center"> <h1 style="color:green">GeeksforGeeks</h1> <h2>angular.lowercase()</h2> <div ng-controller="geek"> <br> <b>Before: </b>{{ string1 }} <br><br> <button id="myButton" ng-mousedown="lower()">Click it!</button> <br><br> <b>After: </b>{{ string2 }} </div> <script> var app = angular.module('app', []); app.controller('geek', function($scope) { $scope.obj1 = "GEEKSFORGEEKS IS THE COMPUTER SCIENCE PORTAL FOR GEEKS." $scope.obj2; $scope.string1 = $scope.obj1; $scope.lower = function() { $scope.string2 = angular.lowercase($scope.obj1); } }); </script> </body> </html> |
chevron_right
filter_none
Output:
Before Click:

After Click:

Recommended Posts:
- PHP | imagecreatetruecolor() Function
- p5.js | year() function
- D3.js | d3.utcTuesdays() Function
- PHP | Ds\Sequence last() Function
- PHP | array_udiff_uassoc() Function
- PHP | geoip_continent_code_by_name() Function
- D3.js | d3.map.set() Function
- PHP | opendir() Function
- PHP | cal_to_jd() Function
- D3.js | d3.bisectLeft() Function
- PHP | stream_get_transports() Function
- PHP | Ds\Deque pop() Function
- PHP | SimpleXMLElement children() Function
- AngularJS | ng-show Directive
- PHP | is_numeric() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



