Motifworks interview question

Angular : Components interaction