AngularJs如何单独跟踪复选框列表?

I have a list of items, which I loop on in twig

{% for paymentTransaction in paymentTransactions %}
  <input type="checkbox" ng-checked="updateAddedToCrm({{ company.id }})" >
{% endfor %}

And this my Angular Controller.

 app.controller('TransactionsListController', function ($scope, $http) {

$scope.updateAddedToCrm = function () {
    //api to update the company linked to that payment
}

What I need to do, is on clicking this checkbox, I should call an api to update my object. My problem is how to track each checkbox... Ideally I want to track them by the company id (paymentTransaction.user.company) because, if a payment transaction is linked to a certain company, and I checked its checkbox, it should update all the checkboxes of paymentTransactions mapped to that company to be checked too. I don't know what should be my ng-model be in that case... All the examples I saw are using ng-repeat, but I don't want to build my list of payments using an api back in angularjs. is this the only way? Or can I do something else?