I am using AngularJS v1.7.5 . In my controller, I have used below code to convert a string into lowercase:
function myCtrl($scope, $filter)
{
var sampleText = "THIS IS TEST";
var test = $filter('lowercase')(sampleText);
}
Inject $filter in the controller and use the same to convert to lowercase.