I am using Angular to filter an array of data for a table. The filter works on the table but when I select one of the select options it inserts [object Object] into my text input. How do I stop this?
<div class='table-filters'>
<div class='row'>
<label>Search</label>
<input ng-model="query" name='search' >
</div>
<div class='row'>
<label for='category'>Category</label>
<select ng-model="query.cat">
<option value="">Any</option>
<option value="VOWEL">Vowels</option>
<option value="CONSONANT">Consonants</option>
<option value="NUMBER">Digits</option>
<option value="SIGN: DEP">Dependent Signs</option>
<option value="SIGN: IND">Independent Signs</option>
</select>
</div>
<div class='row'>
<label for='matched-rows'>Matched Characters</label>
<span id='matched-rows'>{{(rows|filter:query).length}}</span<
</div>
</div>