Allscripts interview question

Angular life cycle