lowercaseFiltre AngularJS


Exemple

Affichez le texte en lettres minuscules :

<div ng-app="myApp" ng-controller="caseCtrl">

<h1>{{txt | lowercase}}</h1>

</div>

<script>
var app = angular.module('myApp', []);
app.controller('caseCtrl', function($scope) {
    $scope.txt = "Hello World!";
});
</script>

Définition et utilisation

Le lowercasefiltre convertit une chaîne en lettres minuscules.


Syntaxe

{{ string | lowercase }}

Pages connexes

Tutoriel AngularJS : Filtres angulaires