In NativeScript with Angular2 get element value
问题 I have a list, and I want to get the value of the list item. The view is as follows <ListView [items]="myItems" (itemTap)="onItemTap($event)"> <template let-item="item" let-i="index" let-odd="odd" let-even="even"> <StackLayout [class.odd]="odd" [class.even]="even"> <Label #myFoo id="grocery-list" [text]='"Value is: " + i'></Label> </StackLayout> </template> In typescript I have the following import { Component,ViewChild,ElementRef } from "@angular/core"; import {topmost} from "ui/frame";