how can i filter my dropdown directive using the custom attribute?
$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"},
];
directive tag
<keywords supplier-id="supplier.Id" keyword-type="MarketSegment" title="Choose Status" label="" array="myKeyword" opt-value="Id" opt-description="Description"></keywords>
I want to filter the dropdown by MarketSegment provided.