8000 feat: update sample app to new list-view syntax · raacker/nativescript-vue@0318163 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0318163

Browse files
committed
feat: update sample app to new list-view syntax
1 parent 81af134 commit 0318163

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

samples/app/app-with-v-template.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,20 @@ new Vue({
3232
template: `
3333
<Page>
3434
<StackLayout>
35-
<list-view :items="items">
35+
<list-view for="line in items">
3636
<v-template>
3737
<StackLayout style="padding: 50;">
38-
<Label :text="item.value" style="color: blue;"/>
38+
<Label :text="line" style="color: blue;"/>
3939
</StackLayout>
4040
</v-template>
41-
<v-template if="item.value.length == 2">
41+
<v-template if="line.value.length == 2">
4242
<StackLayout style="padding: 50;">
43-
<Label :text="item.value" style="color: green;"/>
43+
<Label :text="line" style="color: green;"/>
4444
</StackLayout>
4545
</v-template>
46-
<v-template if="item.odd">
46+
<v-template if="line.odd">
4747
<StackLayout style="padding: 50;">
48-
<Label :text="item.value" style="color: red;"/>
48+
<Label :text="line" style="color: red;"/>
4949
</StackLayout>
5050
</v-template>
5151
</list-view>

0 commit comments

Comments
 (0)
0