Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Retrieving Target Scope

See original GitHub issue

Issue Description

#74 was closed before confirmation so starting a new issue.

Based on the last comment

$( might be useful.

I can confirm that this is A scope, but probably not the scope assigned to the target via ng-model.


  _id: "5329f06c8b0acf020098c265",
  name: "Test File"


Child {$id: "00P", this: Child, $$listeners: Object, $parent: Child, $$childTail: null…}
$$childHead: null
$$childTail: null
$$listeners: Object
$$nextSibling: Child
$$prevSibling: null
$$watchers: Array[3]
$id: "00P"
$parent: Child
dndDragItem: Object
parent: Object
this: Child
__proto__: Child

Both dndDragItem and parent contain the drag item model information, but I’m looking for the model of the drop.

I’m using DragDrop to “move” files around in my data, so essentially I need to know the ID of the drop zone so that I can assign it to the drag item as the parent id.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

swamywizcommented, Jan 23, 2017

If you have debugInfoEnabled turned off looks like scope() on an angular element returns undefined. And we want to turn off the debugInfo in the production settings. So to work around this I had to assign HTML element id which is same as the object name or index and extract this in the onDrop callback as giving me the object. But is there any better way of doing this rather than assuming that the template id matches object name?

jimbuckcommented, Jun 8, 2015

Thanks @codef0rmer, that did the trick!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Sight In Your Riflescope - YouTube
Gun featured is the Forbes Model 24, chambered in .308Check out our YouTube channel, "Like" us on Facebook, ...
Read more >
Scope Magnification - Get Rounds on Target Faster - YouTube
Impact Proshop - Shop Amazon - Brownells - MDT ...
Read more >
Target scope - PortSwigger
The target scope configuration lets you tell Burp, at a suite-wide level, exactly what hosts and URLs constitute the target for your current ......
Read more >
How to Sight a Rifle Scope in 7 Easy Steps | The Range 702
Longer range shots – The powerful magnification in a scope allows you to shoot at targets that are further away. Increased accuracy –...
Read more >
Scope functions for Bicep - Azure Resource Manager
Describes the functions to use in a Bicep file to retrieve values about deployment scopes.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found