I have some issues to manage checkboxes and "boxes" containers. The idea is to have a list of checkboxes pre-checked. Each checkboxes controls a "box" container, and when check / uncheck the checkbox, it shows / hides the containers.
here some codes
<div class="col-lg-2">
<div class="btn-group" uib-dropdown>
<button type="button" class="btn btn-primary" uib-dropdown-toggle>Preferences
<span class="caret"></span>
</button>
<ul role="menu" uib-dropdown-menu="">
<li ng-repeat="product in main.products">
<input class="mycheck" type="checkbox" id="'{{product.id}}'" checked="'{{product.ischeck}}'"> {{product.name}}</li>
</ul>
</div>
</div>
and here is the code for the container boxes
<div class="col-sm-3 connectPanels" ui-sortable="sortableOptions" ng-repeat="product in main.products" id="'{{product.id}}Panel'">
<div class="mybox">
<div class="mybox-title">
<h5>{{product.name}}</h5>
<div ibox-tools></div>
</div>
<div class="mybox-content">
<h2><img ng-src="{{product.images}}" />
{{product.type}}
</h2>
<p>{{product.description}}</p>
</div>
</div>
</div>
I've tried various ways; ng-click, ng-show, ng-hide and ng-change but each time I am block to manage to get the product Id and ischeck values together.
Thank you in advance