upper-case filter

Description

We can use uppercase filter to to upper-case the name.

We add | as a separator between the data binding statement and filter.

Example


<!DOCTYPE html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js">
</script><!--   w w w.j  av  a2  s. c  o m-->
</head>
<body>
    <div data-ng-init="names=['XML','CSS','HTML','Javascript']">
        <ul>
            <li data-ng-repeat="name in names">{{name | uppercase}}</li>
        </ul>
    </div>
</body>
</html>

Click to view the demo





















Home »
  AngularJS »
    AngularJS Example »




Controller
Directives
Expression
Filter
Form
Inject
Scope
Server
Style
Template
Utilities