Many of my directives (soon to become components) take their scope from variables set by other directives. Currently, in each directive I have to keep track of my area to see if this has changed, which seems to unnecessarily complicate the code. So I started using ng-if = "vm.ready" in my tag to restore the directive when I need it. But then the management of this state remains outside the scope of the directive, which is more difficult to maintain.
I am wondering if angular will provide such a mechanism if, when changing the scope of your directive, it will at least restore your directory controller.
thank
source
share