title: AngularJS checkbox checking when in ng-repeat
body: <p>I know the solution is not very pretty, but it's needed for the template I'm working in.</p>
  
  <p>Now it works, and it shows me the "Added" span-element when the products was in the list.</p>
  
  <pre><code>&lt;section ng-repeat="product in products"&gt;
      &lt;label&gt;
          &lt;input type="checkbox" 
              checklist-model="foobar.products" 
              checklist-value="product.id"&gt;
          {{ product.name }}
      &lt;/label&gt;
  
      &lt;div ng-repeat="current_item in my.profile.items"&gt;
          &lt;span ng-show="product.id==current_item.id"&gt;Added&lt;/span&gt;
      &lt;/div&gt;
  &lt;/section&gt;
  </code></pre>
  
  <p>What I want, it to check the checkbox to checked, when the "Added" text also appeared behind the checkbox.</p>
  
  <p>I tried doing it with: </p>
  
  <pre><code>&lt;ng-checked="{{my.profile.items.array.thing}}"&gt;
  </code></pre>
  
  <p>But that's not working. Because the products in an Array like:</p>
  
  <pre><code>[{       
      id: 1, name:"Trinity",
      id: 2, name:"Van Gogh",
      id: 3, name:"Bonaqua",
  }]
  </code></pre>
  
  <p>And the <code>my.profile.items</code> is an array with more info then above. Because it's a many-to-many relation where I stored it. </p>
  
  <p>Is there even a way to do this? I don't mind a dirty solution :P </p>
  
  <p>I tried this:</p>
  
  <pre><code>// NG-check function
  $scope.checkStoredValues = function(my) {
  
      // Loop trought my current stored items
      angular.forEach(my.profile.items, function(value, key) {
  
          // Loop trough the array    
          angular.forEach(value, function(value, key) {
              console.error(key);
  
              // If key == 'id'
              if(key == 'id'){
                  // Push the value to the Array of the checkboxes,
                  // so it's checked 
                  // # Docs: http://vitalets.github.io/checklist-model/
                  console.info(value); // Return's: integer 
                  foobar.products.push(value); // Needs more then an integer I guess..
  
              }
          });
      });
  
  };
  </code></pre>
  
  <p>This returns: <code>TypeError: Cannot read property 'push' of undefined</code></p>