Angular Destroy & jquery Destroy

Source: Internet
Author: User
Tags angular scope

The purpose of the destroy is for memory leaks, which can have an impact on performance.

Angular scope triggers destroy when dealing with element removal, and the invocation logic is used as jquery.

There is one thing you can refer to in CK Editor.

CK Editor has its own destroy event, changing the number of repeat CK Editor in Ng-repeat, resulting in a bug (no element found). Why?

Because the change in the ng-repeat will trigger the wash off element first, then trigger the destroy, wash off the element will also trigger destroy, but the element itself, not scope. The bug appears because of the destroy event that wrote the wrong element, but instead wrote the scope destroy callback element destroy caused no element to be found!

Angular Destroy & jquery Destroy

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.