8000 fix: update sample with new list-view syntax · rubythonode/nativescript-vue@e2b5225 · GitHub
[go: up one dir, main page]

Skip to content

Commit e2b5225

Browse files
committed
fix: update sample with new list-view syntax
1 parent 7aba01c commit e2b5225

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

samples/app/app-with-nested-object-list-view.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ const Vue = require('./nativescript-vue')
33
new Vue({
44
template: `
55
<page>
6-
<list-view :items="items">
7-
<template scope="item">
6+
<list-view for="item in items">
7+
<v-template >
88
<flexbox-layout class="line">
9-
<label :text="item.$index" ></label>
9+
<label :text="$index" ></label>
1010
<label :text="item.text" ></label>
1111
<label :text="item.user.name" ></label>
1212
<label :text="item.user.meta.age" ></label>
1313
</flexbox-layout>
14-
</template>
14+
</v-template>
1515
</list-view>
1616
</page>
1717
`,

0 commit comments

Comments
 (0)
0