-2

嗨,我有一个问题,如何从选择选项中的列表中获取值。

我有这个数组

{
    "C_ID": "Item044",
    "Descripcion": "Item 1", 
    "ID": "044"
},
{
    "C_ID": "Item045",
    "Descripcion": "Item 2 ,
    "ID": "045"
},
{
    "C_ID": "Item046",
    "Descripcion": "Item 4",
    "ID": "046"
},
{
    "C_ID": "Item047",
    "Descripcion": "Item 5",
    "ID": "047"
},

and I get this values in a select option with NgFor but I need when selected for example Item 1 get the ID and C_ID in a input text automatic

4

1 回答 1

-1

and I get this values in a select option with NgFor but I need when selected for example Item 1 get the ID and C_ID in a input text automatic

将一个模型连接到选择输入。然后将支持的字段连接到输入。Now when the select changes the input text should change.

于 2018-08-16T23:32:41.763 回答