Hi I have a json array like this
var homes = [
{
"city": "Dallas",
"state": "TX",
"zip": "75201",
"NoteNumber": "162500"
}, {
"city": "Bevery Hills",
"state": "CA",
"zip": "90210",
"NoteNumber": "319250"
}, {
"city": "New York",
"state": "NY",
"zip": "00010",
"NoteNumber": "null"
}
];
I am displaying them in a div using ng-repeat
<div ng-repeat="name in homes">
{{name.city}}
</div>
I have html select tag with options notenumber and null
Help me how to show cities who only have notenumber when notenumber is selected and when null is selected it should show only null notenumber cities.
ng-optionsand addign current value tong-modelin select tag.