AngularJS angular.lowercase() Function (original) (raw)

Last Updated : 12 Sep, 2022

The angular.lowercase() Function in AngularJS is used to convert the string into lowercase. It can be used when the user wants to show the text in lowercase instead of uppercase or one wants to compare two strings.

Syntax:

angular.lowercase(string)

Example 1: This example describes the implementation of the angular.lowercase() Function in AngularJS by specifying the button to transform the string to lowercase.

HTML `

angular.lowercase()

GeeksforGeeks

angular.lowercase()


Before: {{ string1 }}

Click it!

After: {{ string2 }}

`

Output:

Example 2: This example describes the implementation of the angular.lowercase() Function in AngularJS by specifying the checkbox to transform the text to lowercase.

HTML `

angular.lowercase()

GeeksforGeeks

angular.lowercase()


{{ string1 }}

Click Me

{{ string2 }}

`

Output: