我正在从API获取数据并将其放入表中,但是出现错误。
constructor(private marketListService: MaxDigitalService ) { }
ngOnInit() {
this.dataSource = new DataGridDataSource({
load: params => {
return this.marketListService
.GetMarketListDaysSupply()
.pipe(
map(x => {
console.log(x)
})
)
.toPromise();
}
});
}