UST interview question

What are lifecycle hooks in angular ?