using ng-repeat with directives causes child directives not to update
<p>so if found this very interesting bug in angular.js. if you have a custom directive inside a ng-repeat that is actively changing the variables in the directive don't update. meaning if i have 3 elements in my array for ng-repeat it initializes just fine but if i delete element 1 from the array any variables that element 1 had passed to its child directive somehow end up in element 2's child directive here is my example code.</p>

<pre><code>&lt;div ng-app='testing'&gt;
    &lt;div ng-controller='testing as test'&gt;
        &lt;div ng-repeat='item in test.example track by $index'&gt;
            {{item.title}}
            &lt;child scope='item.data'&gt;&lt;/child&gt;
            &lt;button ng-click="test.delete($index)"&gt;
               Delete
            &lt;/button&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>then in my js file</p>

<pre><code>console.log('hello world');
var app=angular.module('testing',['testingChild']);
app.controller('testing',[function(){
    this.example=[{
        title:"this is the first title",
        data:"this is the first index"
    },{
        title:"this is the second title",
        data:"this is the second index"
    },{
        title:"this is the third title",
        data:"this is the third index"
    }];
    this.delete=function(index){
        this.example.splice(index,1);
    };
}]);
var child=angular.module('testingChild',[]);
child.directive('child',[function(){
    return{
        restrict:"E",
        scope:{
            parent:"=scope"
        },
        template:"&lt;div&gt;{{child.parent}}&lt;/div&gt;",
        controller:['$scope',function($scope){
            this.parent=$scope.parent;
        }],
        controllerAs:"child"
    };
}]);
</code></pre>

<p>and i have a functioning <a href="https://jsfiddle.net/euuLwg8x/" rel="nofollow">jsfiddle here</a>. all you have to do to see it work is delete one of the first elements. does anyone know what causes this and how to fix it?</p>

<p>Side note:</p>

<p>I thought it might be useful also to mention that when using this in a slighty different situation with editable elements in the child (like a text box) the data binding worked from the child to the parent. so assigning a variable attached to the controller to the scoped variable from the parent worked in that direction. this seems to be the only situation i have come across where it would be from the parent to the child and that is what is not working. </p>