Hi Engin,
vm.s1 = res.data.servers[0].map(function (item) { item.server="Server-1";
return item});
vm.s2 = res.data.servers[1].map(function (item) { item.server="Server-2";
return item});
When you set:
search.server = "Server-1"
(you can do that in the ngChange function of your chekboxes)
It will display only the data from server 1.
Does that help you enough?
Regards
Sander
--
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.