What are the lifecycle hooks for components and directives?
Answer / Harendra Pal Singh Chauhan
Lifecycle hooks in AngularJS allow developers to hook into various stages of a component or directive's life cycle. Some common lifecycle hooks include $onInit, $onChanges, $doCheck, $onDestroy, ngOnInit, ngAfterContentInit, ngAfterContentChecked, ngAfterViewInit, ngAfterViewChecked, and ngOnDestroy.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the ng-model directive in angularjs.
What is a singleton pattern?
How to create and use a custom pipes?
Explain ng-include directive in angularjs?
What is strict mode in js?
What is an isolated scope?
How to use angular datepicker in angular 5/4 applications?
List some new features comes with angular6
What is the difference between directives and services?
What Is The Difference Between One-Way Binding And Two-Way Binding?
What is a pure pipe?
Why you will do ngondestroy after subscrib?