uppercase
مرشح AngularJS
مثال
اعرض النص بأحرف كبيرة:
<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>
التعريف والاستخدام
يقوم uppercase
المرشح بتحويل السلسلة إلى أحرف كبيرة.
بناء الجملة
{{ string | uppercase}}
الصفحات ذات الصلة
AngularJS Tutorial: Angular Filters