We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7d0a935 + 00562e1 commit 2a23db5Copy full SHA for 2a23db5
app/elements/components/ListView.js
@@ -1,20 +1,18 @@
1
module.exports = {
2
template: `
3
- <StackLayout>
4
- <ListView :items="items">
5
- <template scope="item">
6
- <Label :text="item.value"/>
7
- </template>
8
- </ListView>
9
- </StackLayout>
+ <ListView for="item in items">
+ <v-template>
+ <Label :text="item.text"/>
+ </v-template>
+ </ListView>
10
`,
11
12
data() {
13
return {
14
items: [
15
- 'First',
16
- 'Second',
17
- 'Third'
+ {text: 'First'},
+ {text: 'Second'},
+ {text: 'Third'}
18
]
19
}
20
0 commit comments