each-inpublic
The {{each-in}}
helper loops over properties on an object. It is unbound, in that new (or removed) properties added to the target object will not be rendered.
For example, given a user
object that looks like:
1 2 3 4 | { "name" : "Shelly Sails" , "age" : 42 } |
This template would display all properties on the user
object in a list:
1 2 3 4 5 | < ul > {{#each-in user as |key value|}} < li >{{key}}: {{value}}</ li > {{/each-in}} </ ul > |
Outputting their name and age.
Please login to continue.