0
我有几个UI选择,根据我想要加载到第二个选项的第一个选择。我如何去做动态的第二个。我做了一些广泛的搜索,但找不到任何东西。如何动态更改UI的选择在angularjs中选择
<ui-select append-to-body="true"
ng-model="requirementChoice" theme="bootstrap"
ng-disabled="disabled" close-on-select="true"
title="choose a requirement"
theme="selectize"
name="requirements" id="requirements">
<ui-select-match placeholder="
{{translations.SLA_CHOOSE_REQUIREMENTS}}">
{{requirementChoice}}
</ui-select-match>
<ui-select-choices repeat="choice in requirementTypes |
filter:$select.search">
{{choice}}
</ui-select-choices>
</ui-select>
这是第一个我的UI的选择具有选择和基于两种选择,我希望将数据加载到第二UI选择是有办法做到这一点?
您可以创建一个虚拟jsfiddle或plunkr。在选择第一个UI选择时,您可以在第二个选项中重置选项......完全取决于您如何设置选项。 –
谢谢我得到它我根据第一个ui选择中选择的选项更改了第二个ui-select的数组。 –