Skip to content

Commit c29ef04

Browse files
dreambo8563tjvantoll
authored andcommitted
initialize grocery to avoid an exception
ref to this issue https://github.com/tjvantoll/nativescript-angular-guide/issues/3
1 parent 8e83717 commit c29ef04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chapters/chapter4.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ Next, give image a new tap attribute binding, so that the full `<Image>` looks l
474474
Next, open `app/pages/list/list.component.ts` and add the following property to the `ListPage` class (right below `groceryList`):
475475
476476
``` TypeScript
477-
grocery: string;
477+
grocery: string = "";
478478
```
479479
480480
Next, add the following two inputs to the top of the `list.component.ts` file:

0 commit comments

Comments
 (0)