Asp.net 使用angularjs按特定列过滤

Asp.net 使用angularjs按特定列过滤,asp.net,angularjs,Asp.net,Angularjs,我有一个表,有两列“Name”和“Description”。我还有一个下拉列表,上面有这两列的名称。用户必须从dropdownlist中选择一个项目,以知道将过滤哪一列,然后在输入中插入关键字。我只需要在表中检索使用他选择的列上应用的关键字过滤的值。我想用angularjs来做。有什么想法吗 <select class="form-control"> <option value="Name"> Nam

我有一个表,有两列“Name”和“Description”。我还有一个下拉列表,上面有这两列的名称。用户必须从dropdownlist中选择一个项目,以知道将过滤哪一列,然后在输入中插入关键字。我只需要在表中检索使用他选择的列上应用的关键字过滤的值。我想用angularjs来做。有什么想法吗

<select class="form-control">
                                    <option value="Name"> Name</option>
                                    <option value="Description">Description</option>
                                </select>
        Search: <input ng-model="searchWord"/>   
        <table class="table table-bordered table-hover">
            <thead>
                <tr>
                    <th>Name</th>
                    <th>Description</th>

                </tr>
            </thead>

            <tbody>
                <tr ng-repeat="item in pagedItems[currentPage] | orderBy:sortingOrder:reverse | filter:searchWord" ng-click="SelectItem(item)" ng-class="{true:'success'}[item == selectedItem]">
                    <td>{{item.name}}</td>
                    <td>{{item.description}}</td>
                </tr>
            </tbody>
        </table>       

名称
描述
搜索:
名称
描述
{{item.name}
{{item.description}

这里有一个plunker链接。您需要生成动态模型并将其绑定到输入框。

pls,看看这篇文章,我可以传递多个列吗?