如何使用带有angularJs的另一个下拉列表过滤下拉列表

时间:2014-03-01 07:56:01

标签: asp.net-mvc angularjs razor filter

我有2个下拉列表:

    <div class="control-group">
        @Html.LabelFor(x => x.ServiceId)
        @Html.DropDownListFor(x => x.ServiceId, new SelectList(Model.ServiceList, "Id", "Title"), new { @class = "open" })
    </div>

    <div class="control-group">
        @Html.LabelFor(x => x.ServiceShareId)
        @Html.DropDownListFor(x => x.ServiceShareId, new SelectList(Model.ServiceShareList, "Id", "Title"), new { @class = "open" })
    </div>

我想按服务下拉列表选择的值过滤服务共享值。怎么办?

1 个答案:

答案 0 :(得分:1)

使用angular pls find过滤下拉列表 以下链接寻求帮助。

http://plnkr.co/edit/n7TebC?p=preview