Infosys interview question

Life cycle in angular and component to component communication