adds debug view for ng-directive