The following is a brief description of how schema scope can be combined in a reference to the $ compile method.
The main points are that the selection areas are not separated and that the element can have no more than one area attached to it. If your directives use a child scope instead, it will be split between the two directives.
- no scope + no scope => Two directives that do not require their own scope will use their parent scope
- child region + without visibility => Both directives will share the same region with one child node
- child region + content region => Both directives will share the same region with one child node
- isolated scope + no visibility => the isolated directive will use its own created isolated scope. Another directive will use parent scope
- isolated scope + child = = Will not work! Only one object can be associated with one element. Therefore, these directives cannot be applied to the same element.
- isolated scope + isolated area => Will not work! Only one object can be associated with one element. Therefore, these directives cannot be applied to the same element.
source share