Repeat
Loop over the items of an array store and append bound instances of that element.
Repeat
is also a plugin for lego.
Installation
with component:
$ component install bredele/repeat-brick
with nodejs:
$ npm install repeat-brick
Usage
First, add the plugin to your view (see lego to know more about views):
var repeat = ; view;
Basic
{{ attr }}
the 'li' is repeated for each item into the store (view is a store)
update the store :
view
and here's the result:
bredele Calgary
See example.
License
MIT