How to make angularJS ng-model work with objects in select elements?
I have a problem with ng-model on a select element when passing an object from option elements. So, imagine we have an array of columns from a table called columns (the table's definition) and we'd like to creat some filters upon this definition var columns = [ {name: 'Account ID', type: 'numeric'}, {name: 'Full name', type: 'text'}, {name: 'Date of birth', type: 'date'}, {name: 'Active', type: 'boolean'} // and so on ]; var filters = [{}]; HTML: <div class="form-field" ng-repeat="filter in filters"> <select ng-model="filter"> <option value="" disabled>Choose filter</option> <option ng-repeat=