Syntax each-------------

hello guys,anybody know how to write the each syntaxe to loop through the retreved tasks and display their name field?
plees help me

    {{#each todo}}
  • {{name}}
  • {{/each}}

Yes - that’s correct … assuming you have a template helper called todo and the documents it’s retrieving have a top-level name field.

2 Likes

Look at here :
https://www.meteor.com/tutorials/blaze/templates

And documentation for {{ each }} :

2 Likes

thanks guys for collaboration , i solved the problem
thanks so much

1 Like