I have multiple input checkbox
created from a model with angular and ng-repeat, when I select some of it I get this, for example:
var accounts: [{'AA764':true}, {'AA324': true}, {'AA234': false}, {'AA553': true}, {'AA7365': false}];
But the structure that I need to manipulate in the controller
where I call a REST API service is like this:
var accounts: ['AA764', 'AA324', 'AA553'];
Only by bringing the key of those that are selected, I have tried with the function of javascript
foreach
but I can not make it work. Is there any Angular service or external library that can help me with this transformation? Thanks.