What is the difference between ngOnChanges and ngOnInit in Angular 8?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Please Disable the AdBlocker to Continue to the site.
ngOnChanges is a lifecycle hook in Angular 8 that is called when a data-bound input property changes. ngOnInit is another lifecycle hook that is called after the first ngOnChanges call and is used to initialize the component.