emberjs/ember.js

Documentation for special values of key in each template helper

Open

#16,719 建立於 2018年6月6日

在 GitHub 查看
 (5 留言) (0 反應) (0 負責人)JavaScript (4,216 fork)batch import
DocumentationHelp Wanted

倉庫指標

Star
 (22,437 star)
PR 合併指標
 (平均合併 11天 14小時) (30 天內合併 20 個 PR)

描述

Hello! I'm not sure if this is the right place for this but I wasn't sure where to ask. In the current documentation for the each template helper it talks about specifying keys but makes no mention of the special values for key, namely:

@index - The index of the item in the array. @item - The item in the array itself. This can only be used for arrays of strings or numbers. @guid - Generate a unique identifier for each object (uses Ember.guidFor).

Which I discovered in this comment

Are these special values actually still valid in 3.2? And if they are, is it alright if I write them back into the documentation?

貢獻者指南