Except that it isn't. It will yield the selected node if your'e in Umbraco tree context, hence not working for a custom tree. Do i have to do anything in particular to make this work? I'm using an old legacy tree support. The tree should be rendered in angular anyways so why is it different ?
Getting selected node in tree Umbraco 7
Haya.
How can i get the selected node in the tree in Umbraco 7 ?
I've tried the following approach:
top.angular.element(top.angular.element("#umbracoMainPageBody")).injector().get('treeService')
The action node is only getting set when you right click a node.
Regards
Morten
BTW i've noticed that selected node doesn't updated in custom trees, however getting the selected node is possible using:
top.angular.element(top.angular.element("#contextMenu")).scope().menuNode
Except that it isn't. It will yield the selected node if your'e in Umbraco tree context, hence not working for a custom tree. Do i have to do anything in particular to make this work? I'm using an old legacy tree support. The tree should be rendered in angular anyways so why is it different ?
is working on a reply...