I want to filter records using text input and select input as show in
example http://jsfiddle.net/nmusmani/gwnfkxmc/5/
Select options are:
`[
{StatusID: 0, StatusDesc: "New"},
{StatusID: 10, StatusDesc: "Enabled"},
{StatusID: 30, StatusDesc: "InProgess"},
{StatusID: 70, StatusDesc: "Done"}
];`
In order to display all values I have added option "all" with value ""
<select id="StatusID" name="statusID" ng-model="search.StatusID"
ng-options="Status.StatusID as Status.StatusDesc for Status in StatusList">
<option value="">All</option></select>
Problem is that on selecting *NEW* with value *0* it display all values
while selecting *ALL* it displays nothing. Whereas, I want to show all
record when ALL is selected and records with New status only when NEW is
selected.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.