From a3f1cba8eca207b203758d75bb8604780fb4e12c Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Wed, 21 May 2014 14:46:05 +0100 Subject: [PATCH] docs(guide/expression): mention the ternary operator Closes #6498 --- docs/content/guide/expression.ngdoc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/content/guide/expression.ngdoc b/docs/content/guide/expression.ngdoc index 43291f9a..f92a91b2 100644 --- a/docs/content/guide/expression.ngdoc +++ b/docs/content/guide/expression.ngdoc @@ -152,9 +152,10 @@ Similarly, invoking a function `a.b.c()` on `undefined` or `null` simply returns ## No Control Flow Statements -You cannot write a control flow statement in an expression. The reason behind this is core to the -Angular philosophy that application logic should be in controllers, not the views. If you need a -conditional, loop, or to throw from a view expression, delegate to a JavaScript method instead. +Apart from the ternary operator (`a ? b : c`), you cannot write a control flow statement in an +expression. The reason behind this is core to the Angular philosophy that application logic should +be in controllers, not the views. If you need a real conditional, loop, or to throw from a view +expression, delegate to a JavaScript method instead. ## `$event`