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

Pass list item itself to the component

$
0
0

I have a can.List items, and I would like to create component for each item and pass each item as components scope attribute.

I tried:

  1. {{#items}}
  2.       <my-component item="this">
  3. {{/items}}
But it seems that this does not work, how can I accomplish it?

Viewing all articles
Browse latest Browse all 3491

Trending Articles