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

What is directive in angular?

0 Answers  


How to setup angular 2 in visual studio 2017 mvc 5 / 6?

0 Answers  


What is routing in javascript?

0 Answers  


What is bootstrapping in angular?

0 Answers  


Differentiate between @injectable() vs. @Inject()?

0 Answers  


What are the attributes can be used during creation of a new angularjs directives?

0 Answers  


Tell me which browsers does Angular work with?

0 Answers  


How to get actions of event binding in angular 4?

0 Answers  


Explain components in angular 2?

0 Answers  


what is linking function and type of linking function?

0 Answers  


Where can I learn angularjs?

0 Answers  


Explain ng-app directive in angular.

0 Answers  


Categories