i have a simple page with a table and a select. I need to apply a filtering with a default value preselected in the html select. The filter need to be applied immediately, when the page finish the loading phase . Here's my code:
The select:
<select class="span2" ng-model="fiASS">
<option></option>
<option>Ftse Mib</option>
<option ng-selected="selected">Nasdaq</option>
<option>Dow Jones</option>
<option>Dax</option>
<option>Cac40</option>
</select>
The repeater and filters
<tr ng-repeat="obj in titoliASS | filter:filtroASS | filter:exchange| filter:poASS | orderBy:predicateASS:reverseASS">
<td>{{obj.TITOLO}}</td>
<td class="hidden-phone">{{obj.INDICE}}</td>
<td>{{obj.POSIZIONE}}</td>
<td class="hidden-phone">{{obj.PREZZO}}</td>
<td class="hidden-phone">{{obj.S1}}</td>
<td class="hidden-phone">{{obj.R1}}</td>
<td class="hidden-phone">{{obj.S2}}</td>
<td class="hidden-phone">{{obj.R2}}</td>
<td><a href="Technical_Analysis.html?idtitolo={{obj.ID}}&titolo={{obj.TITOLO}}"><i class='icon-signal xmlcursor'></i></a></td>
</tr>
The preselection for a default value in the select works but the filter is not applied. The filter is applied only when i change value on the select. I hope the prob is clear.
Thx.