Convert Expression with chained Filters

Description

The following code shows how to convert Expression with chained Filters.

Example


Angular uses the | (pipe) character to combine filters 
with variables in expressions. <!-- w w w.  jav a2s . com-->

<!doctype html>
<html ng-app>
<head>
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.js"></script>
  </head>
  <body ng-app>
    Enter your name: <input type="text" ng-model="name">
    <p>Hello {{name | uppercase | lowercase }}!</p>
  </body>
</html>

Click to view the demo





















Home »
  AngularJS »
    AngularJS Example »




Controller
Directives
Expression
Filter
Form
Inject
Scope
Server
Style
Template
Utilities