- When {{#each}} on object,
{{@last}} is undefined
- When {{#each}} on array,
{{@last}} will be true in last run
- When {{#each}} inside another {{#each}} ,
{{@last}} will be set by outer {{#each}} and the behavior of 1 and 2 changed.
Sample code here:
http://jsfiddle.net/y4pd8qs2/1/
{{@last}}is undefined{{@last}}will be true in last run{{@last}}will be set by outer {{#each}} and the behavior of 1 and 2 changed.Sample code here:
http://jsfiddle.net/y4pd8qs2/1/