I've got a small test app setup using NativeScript 2.1.0, Angular 2.0.0.rc3, and TypeScript 1.8.10. I'm running the project in an Android 5.1.1 Emulator on Windows.
I have a ListView working but now I'm trying to get the same data output using a Repeater declared in XML. I'm not getting the data output, instead I'm seeing something like [Object, Object] displayed vertically in the center of the screen.
Note that my data array is not an observable. It's currently a Typescript array of objects.
I'm not getting any error messages. Everything compiles and runs without errors.
Here's my repeater code. What am I doing wrong?
<GridLayout rows="*">
<!-- this code doesn't work, produces [Object object], in middle of screen -->
<Repeater items="{{ personList }}" row="1">
<Repeater.itemsLayout>
<StackLayout orientation="horizontal"></StackLayout>
</Repeater.itemsLayout>
<Repeater.itemTemplate>
<Label text="{{ FirstName }}" class="medium-spacing"></Label>
</Repeater.itemTemplate>
</Repeater>
<!-- This Code Works
<ListView [items]="personList" row="1">
<template let-item="item">
<GridLayout row="0" columns="80,80">
<Label col="0" [text]="item.FirstName"></Label>
<Label col="1" [text]="item.LastName"></Label>
</GridLayout>
</template>
</ListView>
-->
<ActivityIndicator [busy]="isLoading" [visibility]="isLoading ? 'visible' : 'collapse'" row="1" horizontalAlignment="center"
verticalAlignment="center"></ActivityIndicator>
</GridLayout>