From 9ff48977867a77d28918126ff87c044129e80057 Mon Sep 17 00:00:00 2001 From: pholly Date: Fri, 29 May 2015 14:56:19 -0400 Subject: [PATCH] docs(guide/Expressions): added special case for one-time binding of object literals under Value stabilization algorithm One time binding of object literals are treated differently than simple expressions. Added a link to Ben Nadel's article describing how object literals's keys are checked for undefined. --- docs/content/guide/expression.ngdoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/content/guide/expression.ngdoc b/docs/content/guide/expression.ngdoc index 791bae5aa72d..4e0066ac0a98 100644 --- a/docs/content/guide/expression.ngdoc +++ b/docs/content/guide/expression.ngdoc @@ -303,6 +303,9 @@ then the expression is not fulfilled and will remain watched. keep dirty-checking the watch in the future digest loops by following the same algorithm starting from step 1 +#### Special case for object literals + +Unlike simple values, object-literals are watched until every key is defined. See http://www.bennadel.com/blog/2760-one-time-data-bindings-for-object-literal-expressions-in-angularjs-1-3.htm ### How to benefit from one-time binding