Instruction: Explain how AngularJS deals with asynchronous operations, including promises and the use of the $q service.
Context: Candidates must show their understanding of asynchronous programming in AngularJS and how to effectively handle it within the framework.