Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Mustach question

$
0
0
Thanks, is it possible to pass a list item itself (cartItem) to helper?

I tried:

  1. <ul>
  2.     {{#cartItems}}
  3.     <li>{{itemName . }}</li>
  4.     {{/cartItems}}
  5. </ul>

But there is an error:
Uncaught SyntaxError: Unexpected token .

Viewing all articles
Browse latest Browse all 3491

Trending Articles