I've got two components:
<cmp-one></cmp-one> is inserted to the DOM, while I'm using $compile to create a <cmp-top>.
Then in cmpTop controller I need to get <cmp-one> and insert it into the <cmp-top>.
Insertion works fine, but I need to access cmpTop controller methods from cmpOne - and can't figure out how.
What I've tried so far is adding require: {cmpTop: '^^'} - not working since there is no parent component before insertion is done.
So, how can I achieve this? I mean - insert some component into another, and share its methods to the added child.
updated
Here is the plunker: http://plnkr.co/edit/mgwC5Mbh5qid5q5ELDdQ?p=info
So, I need to access PanelController's methods from the DialogComponentController.
Or, maybe I'm doing it all wrong - so please give me a clue how to make it properly.