react-templates/test/data/scope.rt

8 lines
333 B
Plaintext
Raw Normal View History

2014-11-11 12:06:11 +01:00
<div>
<div rt-scope="['a','b','c'] as items">
2015-09-03 09:53:48 +02:00
<span rt-repeat="item in items" key="i-{itemIndex}">Item:#{itemIndex} = {item}</span>
</div>
<span>{typeof (items) == 'undefined'?'items not in scope':'items in scope'}</span>
<span>{typeof (item) == 'undefined'?'item not in scope':'item in scope'}</span>
</div>