title: Dynamic Angular and Ionic checkbox list
body: <p>I have my app in Ionic and Angular. I have a list with checkbox items that come from an array. What I want is when the user clicks on a checkbox item, they are added to a separate list i.e my choices. </p>
  
  <p>the code is: 
  App.js</p>
  
  <pre><code>$scope.myList = [
  {name:'Choice one'},
  {name:'Choice two)'}
  ];
  </code></pre>
  
  <p>HTML VIEW:</p>
  
  <pre><code>  &lt;div&gt;
    &lt;ul class="list"&gt;
      &lt;li class="item item-checkbox" ng-repeat='item in myList | filter: search'&gt;
    &lt;label class="checkbox"&gt;
     &lt;input type="checkbox" ng-model="option.myList[$index]"&gt;
    &lt;/label&gt;
         &lt;p ng-bind-html="item.name"&gt;&lt;/p&gt;
  
      &lt;/li&gt;
      &lt;ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>So I want the choices once clicked to be added to a list above which is similar code to the html above. Any ideas? </p>