I have a circular directive dependency situation.
DirectiveA.template = '<div switch-on="v"> <DirectiveB when="someVal" /> </div>';
DirectiveB.template = '<div> <DirectiveA /> </div>';
What this will do, if you set up this situation, is hang Chrome and eventually crash the page.
I think the reason is because the way the $compile works it will cause endless recursion.
However, as you can see based on my switch statement, there is a recursion terminator clause. As soon as "someVal" is not equal to $scope.v it should end the recursion.
So my question: is there any way to setup a circular dependency between 2 directives?