当我尝试点击链接时 In NativeScript with Angular2 get element value
我遇到错误,无法读取未定义的属性“文本” console.log(lbl.text);
<template let-item="item" let-i="index" let-odd="odd" let-even="even">
<StackLayout [class.odd]="odd" [class.even]="even">
<Label [id]="'lbl' + i" [text]='"item.desc " + i'></Label>
</StackLayout>
</template>
该物品来自服务
如何获得价值? 谢谢您的帮助