Recursion in Angular 1.5 components
<p>There are a couple of popular recursive angular directive Q&amp;A's out there.
An elegant solution is to abstracting the recursion functionality into a service
And call it at directive 'compile' phase :</p>

<p><a href="https://stackoverflow.com/questions/14430655/recursion-in-angular-directives/18609594#18609594">Stack Overflow Answer</a></p>

<p>What is the best approach if I want to use the same concept in the new Angular 1.5 .component() instead of .directive()?</p>