What is the function of change detection used to do?

did you already see these topics?

I suggest reading them first and then ask more specific questions.