I have a view structure:
var circle = {
'one': {items: []},
'two': {items: []},
'three': {items: []},
'four': {items: []}
};
Each array itemsmust contain 10 unique divs, for example:
circle.one.items the array should contain:
<div className="item item-1">1</div>
...
<div className="item item-10">10</div>
...
circle.four.items the array should contain:
<div className="item item-31">31</div>
...
<div className="item item-40">40</div>
And I use the structure as follows:
<div className="circle-one">
{circle.one.items}
</div>
How to fill arrays with itemsthese divs?
apopa source
share