Skip to content

Commit 504c722

Browse files
committed
test: items is not defined in each, issue #107
1 parent 5a88331 commit 504c722

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/fixtures/conditional_if_key_not_exists.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@
66
{{ key_not_exists.foo }}
77
it works!
88
</if>
9+
10+
<if condition="items && items.length > 0">
11+
<each loop="item, key in items">
12+
{{ item.text }}
13+
</each>
14+
</if>

0 commit comments

Comments
 (0)