aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorCaitlin Potter2014-02-05 23:50:58 -0500
committerTobias Bosch2014-03-21 13:05:29 -0700
commit10d3e1e4472ab9f5cf4418b6438ec2e0f2b0b288 (patch)
tree556cb6d3bcf8fab33063532b9aa16768e181f103 /docs
parent93d1c95c61dbfa565333bb64527a103242175af7 (diff)
downloadangular.js-10d3e1e4472ab9f5cf4418b6438ec2e0f2b0b288.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 'docs')
0 files changed, 0 insertions, 0 deletions