From c5affbb8114eee555337b609cc4a18a87099bada Mon Sep 17 00:00:00 2001 From: Brian Scoles Date: Tue, 9 Dec 2014 06:20:14 -0800 Subject: [PATCH] docs(guide/Expressions): grammar/flow/punctuation --- docs/content/guide/expression.ngdoc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/content/guide/expression.ngdoc b/docs/content/guide/expression.ngdoc index fbdf8f75cdb0..97d75b13a1c8 100644 --- a/docs/content/guide/expression.ngdoc +++ b/docs/content/guide/expression.ngdoc @@ -298,14 +298,16 @@ then the expression is not fulfilled and will remain watched. ### How to benefit from one-time binding -When interpolating text or attributes. If the expression, once set, will not change -then it is a candidate for one-time expression. +If the expression will not change once set, it is a candidate for one-time binding. +Here are three example cases. + +When interpolating text or attributes: ```html
text: {{::name}}
``` -When using a directive with bidirectional binding and the parameters will not change +When using a directive with bidirectional binding and the parameters will not change: ```js someModule.directive('someDirective', function() { @@ -324,7 +326,7 @@ someModule.directive('someDirective', function() { ``` -When using a directive that takes an expression +When using a directive that takes an expression: ```html