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?



When to use $destroy() function of scope?..

Answer / 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

More AngularJS Interview Questions

Explain module in AngularJS?

0 Answers  


Explain ng-bind directive angularjs?

0 Answers  


What is ngmodules?

0 Answers  


Can you use bootstrap with angular?

0 Answers  


Differentiate between ng-Class and ng-Style?

0 Answers  


What is elementref?

0 Answers  


Explain life cycle in angular?

0 Answers  


What do you know about internationalization? How will you implement internationalization in angularjs?

0 Answers  


What is factory method in angular.js?

0 Answers  


Why do we use angular material?

0 Answers  


Explain the difference between angular service and factory? Explain

0 Answers  


What is difference between component and module in angular?

0 Answers  


Categories