title: Angularjs how to conditionally check a checkbox based upon existence of repeat element in another list
body: <p>as a very new angularjs user with a cshtml page, during page load of a modal window, I am trying to check a repeating checkbox if it exists in another list. the code below is conceptual:</p>
  
  <pre><code>&lt;li data-ng-repeat="analysisType in analysisTypes|limitTo:12 | limitTo: -6"&gt;
      &lt;input type="checkbox" ng-class="{'checked' : project.analysisTypes.indexOf(analysisType) != -1}" /&gt;
      {{analysisType.name}}
  &lt;/li&gt;
  </code></pre>
  
  <p>specifically, if analysisType is found in project.analysisTypes array, I would like to check the checkbox. I am nearly certain that it is possible, but can't figure out how.</p>
  
  <p>analysisTypes and project both exist on the $scope, so that data is available.</p>
  
  <p>or maybe the solution is to bind the checkboxes directly to project.analysisTypes, but I still need to be able to dynamically render the domain checkboxes</p>