Ihave a class of elements that on user request gets reset - it is destroyed (alas!) and recreated from scratch. At that moment directive that is attached to that class gets destroyed too. The question is how can we force angular (ie. the controller that this element belongs to) from the outside world to recompile the scope and re-attach the directive.
So, I have a ref to the scope the element was in:
angular.element(myDom).scope()...
How do I kick angular to recompile it anew and attach the directives?
angular.element(myDom).scope().$digest();
nor .$apply
would not work for me.