aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngMock
diff options
context:
space:
mode:
authorZach Snow2013-04-22 17:42:34 -0700
committerPete Bacon Darwin2013-05-16 22:30:37 +0100
commit6798fec4390a72b7943a49505f8a245b6016c84b (patch)
tree3aca336e3eda980ae8eb5d1ffd09993112ce071f /src/ngMock
parentcefbcd470d4c9020cc3487b2326d45058ef831e2 (diff)
downloadangular.js-6798fec4390a72b7943a49505f8a245b6016c84b.tar.bz2
feat($parse): add support for ternary operators to parser
Add '?' token to lexer, add ternary rule to parser at (hopefully) proper precedence and associativity (based on https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators/Operator_Precedence). Since (exp1 && exp2 || exp3) is supported by the parser, and (exp1 ? exp2 : exp3) works the same way, it seems reasonable to add this minor form of control to templates (see #719).
Diffstat (limited to 'src/ngMock')
0 files changed, 0 insertions, 0 deletions