list.html
<div class="list">
<!-- pass only object, not primitive while using isolated scope directives -->
<div ng-repeat="item in list track by $index">
<!-- need to pass parameters from scope into the directive methods, blank or non scope params are not passed to controller method -->
<listitem list="list" is-disabled="isDisabled" itemindex="{index: $index}"
set-list="setList($index)"></listitem>
<list list="item.list" is-disabled="isDisabled" ng-if="item.list != undefined"><list>
</div>
</div>