在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