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 |
Explain module in AngularJS?
Explain ng-bind directive angularjs?
What is ngmodules?
Can you use bootstrap with angular?
Differentiate between ng-Class and ng-Style?
What is elementref?
Explain life cycle in angular?
What do you know about internationalization? How will you implement internationalization in angularjs?
What is factory method in angular.js?
Why do we use angular material?
Explain the difference between angular service and factory? Explain
What is difference between component and module in angular?