-1
IM結果是我得到的是這樣的angular2陣列推從數據庫
->[]
Object
_id:"57bbd5f8f6f5382c313f1cfe"
email:"[email protected]"
__proto__:Object
1:Object
_id:"57c4f5210e7f0d181a0ec9f8"
email:"zxcv"
__proto__:Object
2:Object
_id:"57c64ed4918f02f80a269121"
email:"[email protected]"
__proto__:Object
length: 3
第二次嘗試是這樣
(2) public user[] = [
{email:'asdf'}
{email:'12345'}
{email:'plaskd'}
];
,我使用數組到vaadin組合框中第二sucess得到的結果
->[object,object,object] <<---- here is the diferance
Object
email:"asdf"
__proto__:Object
1:Object
email:"12345"
__proto__:Object
2:Object
email:"plaskd"
__proto__:Object
length: 3
IM,但是第一個不斷錯誤
uncaught TypeError: (item) should be a valid item
如何使1號工作
:
而不是增加直接從數據源中的項目到
this.user
陣,收集他們在一個新的數組實例,然後分配給用戶的財產?如果您將第二個更改爲「ID」,它會工作嗎? – notionquest在標準的國際英語中,我們大寫句子的第一個單詞,大寫單詞「I」,並在句子結尾處標點符號。這不是聊天室或短信聊天。 –