I need a directive ngTree
to get the controller of a parent ngTree
element. Note that require: "^ngTree"
would return the controller of current directive.
I know I could do a ngTreeHelper
and put a div with it, between any two ngTree
divs and require: "^ngTreeHelper"
would work, but it's ugly. I wonder if there is something else I could do.