Skip to content

Commit 12ace43

Browse files
committed
One more small grammatical tweak
1 parent 284effd commit 12ace43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorial/ng-chapter-4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ How does this work? Let’s return to this chunk of code:
237237
</ListView>
238238
```
239239

240-
The [`<ListView>` UI element](http://docs.nativescript.org/api-reference/classes/_ui_list_view_.listview.html) requires an `items` property that points at an array of data—in this case, the `groceryList` array you added to your `ListComponent` class. The list view element requires a child `<template>` element that specifies how to render each item in the `items` array.
240+
The [`<ListView>` UI element](http://docs.nativescript.org/api-reference/classes/_ui_list_view_.listview.html) requires an `items` property that points to an array of data—in this case, the `groceryList` array you added to your `ListComponent` class. The list view element requires a child `<template>` element that specifies how to render each item in the `items` array.
241241

242242
The `let-*` syntax is Angular 2s way of creating template variables within loops. You can think of the syntax working like TypeScripts `let` keyword. This gives you the ability to refer to each item in the array as `item` within the template. For this template, you render each item in the array with a single `<Label>` UI element, and because of the `[text]="item.name"` binding, those labels contain the text from the `name` property of each of the items in `groceryList` TypeScript array.
243243

0 commit comments

Comments
 (0)