Skip to content

Commit 00562e1

Browse files
Feedback from Igor:
- Use `for` - Remove `scope`
1 parent 7831b9f commit 00562e1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: app/elements/components/ListView.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
module.exports = {
22
template: `
3-
<ListView :items="items">
4-
<v-template scope="item">
5-
<Label :text="item.value"/>
3+
<ListView for="item in items">
4+
<v-template>
5+
<Label :text="item.text"/>
66
</v-template>
77
</ListView>
88
`,
99

1010
data() {
1111
return {
1212
items: [
13-
{value: 'First'},
14-
{value: 'Second'},
15-
{value: 'Third'}
13+
{text: 'First'},
14+
{text: 'Second'},
15+
{text: 'Third'}
1616
]
1717
}
1818
}

0 commit comments

Comments
 (0)