• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
AngularJS Filters
 

AngularJS Filters

on

  • 3,073 views

AngularJS Filters

AngularJS Filters

Statistics

Views

Total Views
3,073
Views on SlideShare
1,545
Embed Views
1,528

Actions

Likes
2
Downloads
0
Comments
0

7 Embeds 1,528

http://angular-js.azurewebsites.net 1330
http://localhost 118
http://angular.org.il 54
https://confluence.my.magora.com 17
http://www.linkedin.com 6
http://pinterest.com 2
https://duckduckgo.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    AngularJS Filters AngularJS Filters Presentation Transcript

    • {{ expression [| filter_name[:parameter_value] ... ] }}<input type="text" ng-model="inputFilter" /><ul><li data-ng-repeat="n in names| orderBy:name | filter : inputFilter ">{{name}}</li></ul>
    • Filters
    • angular.module("demo", []).filter(reverse, function () {return function(input, uppercase) {var out = "";for (var i = 0; i < input.length; i++) {out = input.charAt(i) + out;}// conditional based on optional argumentif (uppercase) {out = out.toUpperCase();}return out;};});Reverse: {{ greeting | reverse }}<br>Reverse + uppercase: {{ greeting | reverse : true }}<br>
    • Custom Filters