0

我将 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没有变化

4

1 回答 1

0

大多数聚合物元素在 Angular 2 中无法正确渲染。请参阅此适配器以使您的元素与 Angular 一起使用:https ://github.com/platosha/angular-polymer

于 2017-05-30T10:37:53.483 回答