Instruction: Describe the main lifecycle hooks in AngularJS directives and their purposes.
Context: This question assesses the candidate's understanding of the lifecycle of AngularJS directives, from creation to destruction, and how to hook into these phases for custom logic.