Hey there, I've got a JSON array that looks 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'm currently displaying them in a div
using ng-repeat
<div ng-repeat="name in homes">
{{name.city}}
</div>
In my HTML, I have a select
tag with options for both notenumber
and null
Can someone assist me with how to only display cities with a notenumber
when the user selects notenumber, and only show cities with a null
note number when null is selected?