Ответ 1
Try
<my-dir myindex="$index"></my-dir>
Тогда
app.directive('myDir', function () {
return {
restrict: 'E',
scope: {
myindex: '='
},
template:'<div>{{myindex}}</div>',
link: function(scope, element, attrs){
console.log('test', scope.myindex)
}
};
})
Демо: Plunker