From c92ce4511baa3b124f6b1c5206c17fe5dc47babd Mon Sep 17 00:00:00 2001 From: Guilbert Date: Tue, 8 Jul 2014 11:17:48 +0200 Subject: [PATCH] docs(filterFilter): add note on negation --- src/ng/filter/filter.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ng/filter/filter.js b/src/ng/filter/filter.js index 9f0afeaa6..0325d8b3d 100644 --- a/src/ng/filter/filter.js +++ b/src/ng/filter/filter.js @@ -23,7 +23,9 @@ * which have property `name` containing "M" and property `phone` containing "1". A special * property name `$` can be used (as in `{$:"text"}`) to accept a match against any * property of the object. That's equivalent to the simple substring match with a `string` - * as described above. + * as described above. The predicate can be negated by prefixing the string with `!`. + * For Example `{name: "!M"}` predicate will return an array of items which have property `name` + * not containing "M". * * - `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