You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use hammer.js in my applications (Angular 2 and 5). I use events from this library, as example - tap. If I destroy any DOM-element with the help of *ngIf, there's subscription on the event. As a result, there's a reference to the DOM-object in the memory.
Using it with Angular, too and didn't know about this. Anyway wouldn't this be the same on normal plain js usage? If you remove the dom-element the reference will stay? Could you make a comparison with plain JS or jQuery?
I use hammer.js in my applications (Angular 2 and 5). I use events from this library, as example - tap. If I destroy any DOM-element with the help of *ngIf, there's subscription on the event. As a result, there's a reference to the DOM-object in the memory.
Example
How I can remove listener from this DOM-element?
without tap
with tap
The text was updated successfully, but these errors were encountered: