Add `track by $index` to the `ng-repeat`

Add `track by $index` to the `ng-repeat`, to fix issues with nested tabs.

Fixes #1201