我将 vaadin 组合框用于 angular 2
在我的html代码中,
<div class="col-lg-6">
<vaadin-combo-box [(value)]="storecard1" label="Store Code" [items]="concept" item-label-path="MAP_Code"></vaadin-combo-box>
</div>
在我的组件中,我将此代码放在字符串中
constructor(
this._httpprovider.httpReq('http://192.168.1.40:5000/getdataemp','POST',{cardno:newValue},null).subscribe((data)=>{
var rData = [];
for (let i=0;i<data.length;i++){
rData.push(data[i]);
}
var store = rData.map(i=>(i.Store_ID)).toString();
this.storecard1 = store; << this part cant show the value to the combobox, its still make the combobox empty
});
)
但在我的 html 中它不起作用,
ui没有变化