AngularJS component lifecycle cheatsheet
These are the lifecycles to remember in AngularJS.
$onInit() implements IOnInit
Called when the controller has had all its bindings initialized.
$onDestroy() implements IOnDestroy
Called on a controller when its containing scope is destroyed.
$onChanges(changesObj)
Called whenever one-way bindings are updated.
$doCheck()
Called on each turn of the digest cycle.
$postLink()
Called after this controller's element and its children have been linked.