Retrieving Target Scope
See original GitHub issueIssue Description
#74 was closed before confirmation so starting a new issue.
Based on the last comment
$(event.target).scope() might be useful.
I can confirm that this is A scope, but probably not the scope assigned to the target via ng-model
.
Expected
{
_id: "5329f06c8b0acf020098c265",
name: "Test File"
}
Received
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:
- Created 9 years ago
- Comments:8 (3 by maintainers)
Top 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 - https://www.impactproshop.net Shop Amazon - https://amzn.to/3tOvqNVShop Brownells - https://bit.ly/3BLr7Gq 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 Event.target.id giving me the object. But is there any better way of doing this rather than assuming that the template id matches object name?
Thanks @codef0rmer, that did the trick!