Angular Lifecycle Hooks: ngOnChanges, ngOnInit, and more
Views: 2248
Why do we need lifecycle hooks? Modern front-end frameworks move the application from state to state. Data fuels these updates. These technologies interact with the data which in turn transitions the state. With every state change, there are many specific moments where certain assets become available. At one instance...