AngularJS- uppercasefilter


Voorbeeld

Vertoon die teks in hoofletters:

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

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

</div>

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

Definisie en gebruik

Die uppercasefilter skakel 'n string om na hoofletters.


Sintaksis

{{ string | uppercase}}

Verwante bladsye

AngularJS-tutoriaal: hoekfilters