这是html的数据表:
当我调试typescriptcode工作正常没有错误它停在gridview中的绑定数据.in localhost网格中没有数据
在调试模式扩展:::运行时文件中显示自定义运行时绑定中的一些错误
//运行时API的自定义绑定。
var binding = apiBridge || require(' binding')。Binding.create(' runtime'); //。Binding.create(' runtime');这里显示错误
in extensions ::: webstore
// Webstore API的自定义绑定。
var webstoreNatives = requireNative(' webstore'); // requireNative(' webstore') - 这显示错误
<div class="widget-body">
<div class="widget-body no-padding">
<sa-datatable [options]="{
data: broacasterall,
columns: [
{data:'id'},
{data:'broadcaster_name'},
{data:'broadcaster_channel_name'},
],
buttons: [
'colvis'
]
}" tableClass="table table-striped table-bordered table-hover" >
<thead>
<tr>
<th data-class="expand">Id</th>
<th data-class="expand">Broadcaster Name</th>
<th data-class="expand">Channel Name</th>
</tr>
</thead>
</sa-datatable>
</div>
</div>
<!-- end widget content -->
</div>
这是我的网格打字稿代码: 在这个广播公司的响应中,当运行localhost时,它会获得与各个列完全绑定的数据,它只显示只有列而不是数据的网格
ngOnInit() {
this.client_id = this.user.client_id;
this.getBroadcasterAllGrid();
}
getBroadcasterAllGrid()
{
this.broadcasterService.getAllBroadcasters()
.subscribe(
(broadcasterResponse)=>{
this.broacasterall=broadcasterResponse;
}),
error => this.errorMessage = <any>error;
};