如何使用自定义属性过滤我的下拉指令?
$scope.myKeyword = [
{Id: 1, Keyword:"ActivityType", Description: "Active"},
{Id: 2, Keyword:"ActivityType", Description: "InActive"},
{Id: 3, Keyword:"ActivityType", Description: "Deleted"},
{Id: 4, Keyword:"MarketSegment", Description: "Fashion"},
{Id: 5, Keyword:"MarketSegment", Description: "IT"},
{Id: 6, Keyword:"MarketSegment", Description: "F&B"},
{Id: 7, Keyword:"MarketSegment", Description: "Manufacturing"},
];
指令标签
<keywords supplier-id="supplier.Id" keyword-type="MarketSegment" title="Choose Status" label="" array="myKeyword" opt-value="Id" opt-description="Description"></keywords>
我想按提供的 MarketSegment 过滤下拉列表。