Can't refresh content tree from JS code on another tree
We have some Javascript inside our angular control in the developer tree which needs to refresh the content tree.
We can't call navigationService.syncTree({ tree: 'content'... because it returns an error - Could not find the tree content, activeTree has not been set.
We can get it to work by calling changeSection('content') - THEN WAITING (timeout) - then calling navigationService.syncTree(.
Obviously that sucks. It seems that changeSection isn't blocking and doesn't return a promise. I assume therefore what we need to do is listen to an event from the treeService once it's actually switched - but the treeService doesn't seem to be available! :(
Can't refresh content tree from JS code on another tree
We have some Javascript inside our angular control in the developer tree which needs to refresh the content tree.
We can't call
navigationService.syncTree({ tree: 'content'...
because it returns an error -Could not find the tree content, activeTree has not been set
.We can get it to work by calling
changeSection('content')
- THEN WAITING (timeout) - then callingnavigationService.syncTree(
.Obviously that sucks. It seems that
changeSection
isn't blocking and doesn't return a promise. I assume therefore what we need to do is listen to an event from the treeService once it's actually switched - but the treeService doesn't seem to be available! :(Can anyone help?
Thanks!
is working on a reply...