阅读背景:

如何基于数据绑定而不是索引在Angular选择菜单中设置默认值

来源:互联网 

I would like to set the default item in a select menu based on value rather than by index position. For example, in the sample below, if one of the radio buttons in a form displays "Oranges," and a user selects that radio button, is it possible to make the default selection in the subsequent select menu be Oranges as well? Ideally, I would prefer not to rely on the order of items in the select menu. I would like to set the default item in a selec




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: