zone.js

20 views
Skip to first unread message

Krithi Alva

unread,
Sep 27, 2019, 1:56:59 PM9/27/19
to Angular and AngularJS discussion

I have been working on angular 5 from last few months now. And I wanted to implement draggable functionality .I have written my code in this link https://stackblitz.com/edit/angular-issue-repro2-hvzjos

I am trying to use runOutsideAngular which almost worked when I had one child div with draggable event inside the parent div with draggable event as well. where as when I am trying to add one more child div 

with draggable event the runoutsideangular doesn't seems to be working it triggers multiple mouse move and mouse leave change detection's in zone.js which is making the page very very slow.

I am stuck in this problem probably from last 2 days Can anyone help me please 

Sander Elias

unread,
Oct 5, 2019, 3:52:48 AM10/5/19
to Angular and AngularJS discussion
Hi Krithi,

What happens if you don't inject the zone at all, I'm not seeing a reason why you would do this outside of angular.
And if you do, you should do all the handling outside, not just raising the events. 
If you want a drag&drop functionality, perhaps take a look at the Angular CDK, which provides a working setup.

Regards
Sander

Manjari Singh

unread,
Oct 6, 2019, 7:11:34 AM10/6/19
to ang...@googlegroups.com
Hi ,

When I open angular.io webpage , most of the left hand side index, for example life cycle hooks, display nothing on the right?

--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/angular/021d6cb0-c1ba-486c-a3d8-b6e0bf56bf58%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages