V
V
Vitaly Stolyarov2018-07-05 23:22:36
Angular
Vitaly Stolyarov, 2018-07-05 23:22:36

How to disable Zone.js interaction with native element in Angular page?

A page rendered by Angular has a built-in native container (an editor with blocks) that are not processed by Angular in any way. But despite this, interaction with elements inside the container occurs with worse performance than outside Angular. I'm assuming it's something to do with Zone.js, as there was one bug where the .stopPropagate() on the block inside the container was missing , which again indicates interference with native events.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
theykillimmortal, 2018-07-06
@Ni55aN

Hello. You need to look towards ngZone.runOutsideAngular() . This will allow you to disable changeDetection.
Usage examples:
1) for third party library
2) for events and comprehensions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question