I have been working on this up until now.
I'm trying to access $parent.$index in a directive, is that possible? Can someone explain it to me?
<ul>
<li ng-repeat="item in lists">
{{item.name}}
<ul>
<li ng-repeat="card in item.cards">
{{card.name}}
<div modal-window-card></div>
</li>
</ul>
</li>
</ul>