From 8fb3d080709755db056365e7c1c78342431e0e74 Mon Sep 17 00:00:00 2001 From: Boris Cherny Date: Fri, 22 May 2015 16:58:01 -0700 Subject: [PATCH] docs(ngRepeat): document that track by must be the last expression this is a point of confusion that's not well documented. see #5520 --- src/ng/directive/ngRepeat.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ng/directive/ngRepeat.js b/src/ng/directive/ngRepeat.js index 06180f7022ce..553ff54b87ec 100644 --- a/src/ng/directive/ngRepeat.js +++ b/src/ng/directive/ngRepeat.js @@ -97,6 +97,13 @@ * * ``` * + * Note that `track by` must be the last expression in your repeater: + * ```html + *
+ * {{model.name}} + *
+ * ``` + * * # Special repeat start and end points * To repeat a series of elements instead of just one parent element, ngRepeat (as well as other ng directives) supports extending * the range of the repeater by defining explicit start and end points by using **ng-repeat-start** and **ng-repeat-end** respectively.