I have an ko.observableArray that I want to apply a filter when displaying the result.
Here is my fiddle: Fiddle
var myViewModel = {
departments: ko.observableArray([{
departmentname: 'IT'
},
{
departmentname: 'Admin'
},
{
departmentname: 'Technical'
},
{
departmentname: 'Operations'
}]),
filters: "IT"
};
As you can see from the fiddle the filter work if you filter for one value.
but I require to filter for more than one value eg.
filters: "IT","Admin"
Is there a way to do this?
Thanks in advance