The short answer is yes .
It makes no sense to have two directives requiring both a highlight region and a parent region. The idea would be to think about how the directive can work with each other. How does the normative directive of the parent region work correctly if its scope is a selection?
I think the angular team decided not to give a warning in this situation (there may be a mistake).
- if a selection area is required for a lower priority, which means that it has a strict requirement for data from the parent areas
- If a higher priority does not require a region, which means that it inherits the parent region and potentially uses this data in the template.
This is a catch situation 22: It does not make sense that the non isolate directive uses the allocation region, as it may depend on the fact that it does not isolate. At the same time, the isolate directive most likely depends on its isolation.
From Igor Minar , he talks about several areas of isolation, but on the same issue basically:
My suggestion is to use selection areas when you create reusable components that are supported by the template. If you want to compose several directives, you must design them so that one directive is the main one (with the template), and the other directives are just auxiliary directives (like dashes or mixins in some programming languages).
source share