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.
the code is: App.js
$scope.myList = [
{name:'Choice one'},
{name:'Choice two)'}
];
HTML VIEW:
<div>
<ul class="list">
<li class="item item-checkbox" ng-repeat='item in myList | filter: search'>
<label class="checkbox">
<input type="checkbox" ng-model="option.myList[$index]">
</label>
<p ng-bind-html="item.name"></p>
</li>
<ul>
</div>
So I want the choices once clicked to be added to a list above which is similar code to the html above. Any ideas?