I'm trying to iterate over the email key in this object with handlebars, so only the email values will be presented.
//users object
[{ first_name: 'foo',
last_name: 'foo',
email: 'foo@gmail.com',
phone: '5555' } ]
I've tried to use each like this:
<ul>
// iterate over the first array
//iterate over the objects
<li>: </li> // didn't work
Finale result should be :
- email : foo@gmail.com
I guess i could use an if statement but i think concatenation should do the trick
via RoyBarOn
No comments:
Post a Comment