From 5c913c3bc5cc8c4daff279ec2d1abc9808a719ad Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 24 Feb 2015 14:31:53 -0700 Subject: [PATCH] docs(collectionRepeat): add note about not using one-time binding --- js/angular/directive/collectionRepeat.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/angular/directive/collectionRepeat.js b/js/angular/directive/collectionRepeat.js index 0ca4330859..5c60c167a6 100644 --- a/js/angular/directive/collectionRepeat.js +++ b/js/angular/directive/collectionRepeat.js @@ -15,11 +15,14 @@ * This means that on a phone screen that can fit eight items, only the eight items matching * the current scroll position will be rendered. * - * **Basics**: + * **The Basics**: * * - The data given to collection-repeat must be an array. * - If the `item-height` and `item-width` attributes are not supplied, it will be assumed that * every item in the list's dimensions are the same as the first item's dimensions. + * - Don't use angular one-time binding (`::`) with collection-repeat. The scope of each item is + * assigned new data and re-digested as you scroll. Bindings need to update, and one-time bindings + * won't. * * **Performance Tips**: *