Fixing the recursive bug...bad code
Using slightly different approach in directive. All in one template with ng-if