I have some nested directives as follows:
<div ng-controller="MyCtrl">
<parent sku="12345">
<child>
</child>
</parent>
</div>
Both the parent and child directives have an isolated scope but I need to share the SKU attribute value between the parent and the child so that the child has access to this value. This value will always be hardcoded in the HTML.
Ideally, I would like each of the directives to have their own individual controller as well as a parent controller that sits over the top of both (MyCtrl) and I was intending on giving each directive their own isolated scope and then picking and choosing which scope values I want to share between them. The problem is I dont know how to do this.
Plunkr can be found here...