SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 145 JavaScript

feat(filterFilter): allow overwriting the special `$` property name

Previously, the special property name that would match against any
property was hard-coded to `$`.
With this commit, the user can specify an arbitrary property name,
by passing a 4th argument to `filterFilter()`. E.g.:

```js
var items = [{foo: 'bar'}, {baz: 'qux'}];
var expr  =  {'%': 'bar'};

console.log(filterFilter(items, expr, null, '%'));   // [{foo: 'bar'}]
```

Fixes #13313
PR (#13356)
G
Georgios Kalpakas committed
33514ec384d676d84b2a445bc15bae38c8c3ac8d
Parent: 28bd20e
Committed by Martin Staffa <mjstaffa@gmail.com> on 6/16/2016, 12:15:55 PM