Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="myApp">
<head>
  <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
  <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular-sanitize.js"></script>
  <meta charset="utf-8">
  <title>AngularJS Buit-In Filter Example</title>
</head>
<body ng-controller="MyController">
  <h3>currency filter with fraction</h3>
  {{price | currency:'USD$ '}}
  <h3>currency filter without fraction</h3>
  {{price | currency:'USD$ ':0}}
  <h3>currency filter with 1 fraction</h3>
  {{price | currency:'USD$ ':1}}
  <h3>lowercase filter</h3>
  {{name | lowercase}}
  <h3>uppercase filter</h3>
  {{name | uppercase}}
  <h3>date filter</h3>
  {{birthDay | date:'dd/MM/yyyy'}}
  <h3>number filter</h3>
  {{rollNumaber | number:2}}
  <h3>json filter</h3>
  {{studentObject | json}}
  <h3>limitTo filter</h3>
  <input type="number" ng-model="limitNimber" placeholder="Enter Limit Number"><br/>
  Fruit Array : {{fruitArray|limitTo:limitNimber}}
  <h3>orderBy filter</h3>
  Fruit orderBy : {{fruitArray|orderBy:reverse}}
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
saan1984pro
0viewers