diff options
| author | Caitlin Potter | 2014-02-05 23:50:58 -0500 | 
|---|---|---|
| committer | Caitlin Potter | 2014-03-18 22:54:46 -0400 | 
| commit | 37bc5ef4d87f19da47d3ab454c43d1e532c4f924 (patch) | |
| tree | 0beac055610fbdb39363ca4070d8d48a7b3c21c1 /src/ng/directive/select.js | |
| parent | 3652831084c3788f786046b907a7361d2e89c520 (diff) | |
| download | angular.js-37bc5ef4d87f19da47d3ab454c43d1e532c4f924.tar.bz2 | |
fix(orderBy): support string predicates containing non-ident characters
The orderBy filter now allows string predicates passed to the orderBy filter to make use property
name predicates containing non-ident strings, such as spaces or percent signs, or non-latin
characters.
This behaviour requires the predicate string to be double-quoted.
In markup, this might look like so:
```html
<div ng-repeat="item in items | orderBy:'\"Tip %\"'">
...
</div>
```
Or in JS:
```js
var sorted = $filter('orderBy')(array, ['"Tip %"', '-"Subtotal $"'], false);
```
Closes #6143
Closes #6144
Diffstat (limited to 'src/ng/directive/select.js')
0 files changed, 0 insertions, 0 deletions
