0
我无法使用ListView和模板进行工作绑定。本地脚本列表模板绑定不起作用
<ListView #userListView [items]="usersViewList" (itemTap)="onItemTap($event)">
<template let-user="item" let-i="index">
<GridLayout columns="auto">
<Label [text]="user.name" col="0"></Label>
</GridLayout>
</template>
</ListView>
at cration time user.name is assigned properly,但later later if call。
user.name = "other name";
什么也没有发生。
绑定上下文正确设置为usersViewList中的项目。但是没有更改传播到单个列表项。
感谢您的咨询!
换句话说:绑定到绑定上下文不适用于listview项目。 – Ondrej