This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Exception is thrown when special characters are used in OrderBy filter #6143
Closed
Description
I am getting the below exception when a special character, such as '%', is used in the OrderBy filter to sort the object by the key. Can you please suggest a work around for this issue? Thanks!
http://plnkr.co/edit/hNYeujXNcG4HaJc9c3Td?p=preview
Error: [$parse:syntax] http://errors.angularjs.org/1.2.11/$parse/syntax? p0=undefined&p1=not%20a%20primary%20expression&p2=null&p3=Chg%20%25&p4=Chg%20%25
at Error (native)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.11/angular.min.js:6:450
at Ya.throwError (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.11/angular.min.js:155:346)
at Ya.primary (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.11/angular.min.js:155:30)
at Ya.unary (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.11/angular.min.js:161:240)
at Ya.multiplicative (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.11/angular.min.js:161:39)
at Ya.additive (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.11/angular.min.js:160:340)
at Ya.relational (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.11/angular.min.js:160:204)
at Ya.equality (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.11/angular.min.js:160:66)
at Ya.logicalAND (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.11/angular.min.js:159:456)