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
How to bootstrap your angular app for multiple modules?
What is RouterOutlet?
Explain ng-bind directive angularjs?
What is shadow dom?
What is p table in angular?
When to use factory?
What are the types of controller?
What is injector?
Explain ng-show directive?
What are interceptors in angular 4?
What do you mean by controllers?
What is share module?
Explain life cycle in angular?
Explain the difference between angular service and factory? Explain
What is dom in angular?