I am using ngTable v1.0.0. I have a filter select dropdown. Even when I set my default option to the filter to "something" it still creates an empty option tag which shows up as a blank value.
How do I get rid of this
this.tableParams = new NgTableParams({
filter: { type: "2|3|6", userGroup: "", name: "" }
}
How do I get rid of this?
Table HTML
<td title="'Type'" filter="{type: 'select'}"
filter-data="users.userTypes" header-class="'filter-select-dropdown'">
{{user.type}}
</td>
JS scope model
$scope.users.userTypes.push({'title': 'All', 'id': '2|3|6'});
_.each(hl.userTypes, function(v, k) {
if(k == 2 || k ==3 || k == 6) {
$scope.users.userTypes.push({'id': k, 'title': v});
}
});