在ng2-ya-table
文档的数据源功能,这样写的:如何在ng2-ya表中使用datasoure?
public datasource: any = (request: any): Observable<any> => {
return this.service.getUsers(request);
}
而且像这样使用:
我不希望因为我必须要使用此功能以这种方式静态
data = [
{
name: 'Patricia',
email: '[email protected]',
username: 'Yes',
},
{
name: 'Chelsey Dietrich',
email: '[email protected]',
username: 'No',
}
]
是否有可能或者我有义务呈现可观察类型? 我试图用静态数据很多,但白白
public datasource: any = {
return this.data ;
}
为什么这个功能不工作?
希望有人回答你......我对这个模块同样的问题,文件很糟糕 – TSG