Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

When to use $destroy() function of scope?

Answer Posted / chaitanya

$destroy() - This function permanently detached the current scope with all of its children from the parent scope. This is required when child scopes are no longer needed. Hence, $destroy() function is called to remove these scopes from the browser’s memory.

When $destroy() is called all the watchers and listeners get removed and the object which represented the scope becomes eligible for garbage collection.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to bootstrap your angular app for multiple modules?

1374


What is RouterOutlet?

807


Explain ng-bind directive angularjs?

783


What is shadow dom?

851


What is p table in angular?

758


When to use factory?

844


What are the types of controller?

880


What is injector?

815


Explain ng-show directive?

789


What are interceptors in angular 4?

857


What do you mean by controllers?

785


What is share module?

844


Explain life cycle in angular?

775


Explain the difference between angular service and factory? Explain

767


What is dom in angular?

804