title: how to check checkbox whether true or false in angularjs using index value
body: <p>I have checkbox inside the <code>ng-repeat</code> I want check whether checkbox is checked or not using their index value</p>
  
  <h1>html</h1>
  
  <pre><code>&lt;div ng-repeat="Name in Names"&gt;
      &lt;input type="checkbox" 
             ng-change="checkchange(Name .MaterialStream, $index)"
             ng-model="Name.MaterialStream" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <h1>controller</h1>
  
  <pre><code>$scope.checkchange=function(index){
        $scope.Names[index].active='true';
  }
  </code></pre>
  
  <p>Now I get correct value when I check the checkbox. I have to get active value is <code>true</code> but I have check means active should be change into <code>false</code> in my case it's <code>true</code> here I attached my code help how to do this.</p>