User:
Number :{{Title |number}}
Tiền Tệ: {{ Title |currency}}
Uppercase: {{ Title | uppercase }}
Lowercase: {{ Title | lowercase }}
date: {{Title |date}}
Json: {{ Title | json }}
filter: {{Title |filter}}
limitTo: {{ Title | limitTo }}
orderBy: {{Title |orderBy}}
Number :{{Title |number}}
Tiền Tệ: {{ Title |currency}}
Uppercase: {{ Title | uppercase }}
Lowercase: {{ Title | lowercase }}
date: {{Title |date}}
Json: {{ Title | json }}
filter: {{Title |filter}}
limitTo: {{ Title | limitTo }}
orderBy: {{Title |orderBy}}
AngularJS Filter
code :
<!DOCTYPE html> <html> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script> <script> var app = angular.module("myApp", []); app.controller("control1",function ($scope) { $scope.Title="Fullname"; }); </script> <body> <div ng-app="myApp" ng-controller="control1"> User:<input type="text" ng-model="Title"> <br> <p>Number :{{Title |number}}</p> <p> Tiền Tệ: {{ Title |currency}}</p> <p>Uppercase: {{ Title | uppercase }}</p> <p>Lowercase: {{ Title | lowercase }}</p> <p>date: {{Title |date}}</p> <p>Json: {{ Title | json }}</p> <p>filter: {{Title |filter}}</p> <p>limitTo: {{ Title | limitTo }}</p> <p>orderBy: {{Title |orderBy}}</p> </div> </body> </html>