I am currently developing a directive for AngularJS. How can I specifically configure it to require being a child of directiveA?
For instance, consider the following example:
<my-modal>
<m-header>Header</m-header>
</my-modal>
In this scenario, m-header
must always be a direct child of my-modal
. If not, an exception will occur.