am using nativescript version 2.5.0. Мое приложение успешно работает в сети. но в nativescript он ничего не отображает.nativescript Listview не отображает
tns.html
<GridLayout rows="*">
<ListView [items]="views$ | async" (itemTap)="onClickView($event.view.bindingContext)">
<template let-view="item">
<Label [text]="view"></Label>
</template>
</ListView>
</GridLayout>
component.ts
@Component({
moduleId: module.id,
selector: 'sd-list',
templateUrl: 'list.component.html',
styleUrls: ['list.component.css']
})
export class ListComponent implements OnInit {
public views$: Observable<any>;
constructor(private store: Store<IAppState>, private route: ActivatedRoute) {
console.log("Inside listcomonent"); -----> This console is working
this.views$ = store.let(getViews);
this.listType$ = store.let(getListType);
}
}
Это то, что я есть. в моем веб-приложении вид списка заполняется значениями. но в случае родного скрипта (android) ничего не получается. что мне делать? любая помощь будет очень заметной и полезной.
Вы можете отлаживать приложение на хроме? вы можете видеть, что на Android должно быть что-то, что не работает. – MobileEvangelist