I want to access bindings in a transclude block, here a litte example:
<datagetter>
<dataviewer data="$ctrl.data"></dataviewer>
</datagetter>
The datagetter component get some data via service and store it in a local variable e.g. this.data ( $ctrl.data in tempalte) - now i want to acces this data in the component that is set in the transclide block "dataviewer".
To solve this i read this articles, who come close to my problem:
Passing a binding to transcluded scope in component
AngularJS - access directive scope from transclude scope
I know i can use require to get the parentconroller in the childcomponent but this is not an option because i want to stay generic, for example it could be another "dataviewer" that takes the same data from "datagetter", also it should be used in a scenario where the "dataviwer" gets data from another datagetter.
is there a suitable solution for my needs? any help is appreciated