Nativescript Listview正在运行示例-setLocal错误
我正在试着在 我在上得到一个编译时错误Nativescript Listview正在运行示例-setLocal错误,nativescript,angular2-nativescript,Nativescript,Angular2 Nativescript,我正在试着在 我在上得到一个编译时错误 onSetupItemView(参数:SetupItemViewArgs){ args.view.setLocal('third',(args.index%3==0)); } 获取错误:类型“EmbeddedViewRef”上不存在属性“setLocal”看起来像是EmbeddedViewRef。setLocal()已弃用 现在是args.view.context.third=new_值看起来EmbeddedViewRef.setLocal()已被弃用 现
onSetupItemView(参数:SetupItemViewArgs){
args.view.setLocal('third',(args.index%3==0));
}
获取错误:类型“EmbeddedViewRef”上不存在属性“setLocal”看起来像是
EmbeddedViewRef。setLocal()
已弃用
现在是
args.view.context.third=new_值代码>看起来EmbeddedViewRef.setLocal()
已被弃用
现在是args.view.context.third=new_值代码>