Skip to content
This repository was archived by the owner on Jan 23, 2022. It is now read-only.

Commit 7b77ad1

Browse files
feat(): filter example
1 parent 5dbc9e7 commit 7b77ad1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/filter.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
'use strict';
2+
3+
/**
4+
* @ngdoc filter
5+
* @name rfx.filter:checkmark
6+
* @function
7+
* @description
8+
* # checkmark
9+
* Filter that returns ✓ for true; and ✘ for false input.
10+
*/
11+
angular.module('rfx')
12+
.filter('checkmark', function () {
13+
return function(input) {
14+
return input ? '\u2713' : '\u2718';
15+
};
16+
});

0 commit comments

Comments
 (0)