tchatel / angular-treeRepeat

Recursive repeater for AngularJS
Do What The F*ck You Want To Public License
115 stars 16 forks source link

Way to get the parents of selected node? #14

Open eHxBes opened 9 years ago

eHxBes commented 9 years ago

Hi,

Is there an easy way to get the parents of a selected node?

Tree:

Root ----- Parent2 -------- Child ------------------- innerChild -------- Child2 -------- Child3 ----- Parent3 ----- Parent4

Clicking on innerChild would return Child and Parent2 has parents. Like so : Parent2 > Child > innerChild

tangorri commented 9 years ago

using scope.$parent maybe ?