diff options
| author | royling | 2014-01-03 16:31:07 +0800 |
|---|---|---|
| committer | Igor Minar | 2014-01-03 02:43:22 -0800 |
| commit | 05596527edb055b094dd6b42ca118b411aa27eb2 (patch) | |
| tree | e6a335d0fba7baaeedc06e8169ef58ae9274c25b /src | |
| parent | 5fea3471e80e22db0bb79b67956a0143d31dace1 (diff) | |
| download | angular.js-05596527edb055b094dd6b42ca118b411aa27eb2.tar.bz2 | |
docs($filter): fix wrong param order in doc
fix wrong param order in doc for filter comparator
doc function param for filter expression
Closes #5365
Closes #5611
Diffstat (limited to 'src')
| -rw-r--r-- | src/ng/filter/filter.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ng/filter/filter.js b/src/ng/filter/filter.js index bad6dea3..4209fbd8 100644 --- a/src/ng/filter/filter.js +++ b/src/ng/filter/filter.js @@ -25,21 +25,21 @@ * property of the object. That's equivalent to the simple substring match with a `string` * as described above. * - * - `function`: A predicate function can be used to write arbitrary filters. The function is + * - `function(value)`: A predicate function can be used to write arbitrary filters. The function is * called for each element of `array`. The final result is an array of those elements that * the predicate returned true for. * - * @param {function(expected, actual)|true|undefined} comparator Comparator which is used in + * @param {function(actual, expected)|true|undefined} comparator Comparator which is used in * determining if the expected value (from the filter expression) and actual value (from * the object in the array) should be considered a match. * * Can be one of: * - * - `function(expected, actual)`: + * - `function(actual, expected)`: * The function will be given the object value and the predicate value to compare and * should return true if the item should be included in filtered result. * - * - `true`: A shorthand for `function(expected, actual) { return angular.equals(expected, actual)}`. + * - `true`: A shorthand for `function(actual, expected) { return angular.equals(expected, actual)}`. * this is essentially strict comparison of expected and actual. * * - `false|undefined`: A short hand for a function which will look for a substring match in case |
