watch for ng-repeat model change and update the directive accordingly