As I work on developing an AngularJS (Ionic) app, I have come across many resources emphasizing the best practices in AngularJS development. One common guideline mentioned is to avoid using controllers for DOM interactions. I currently have calls to ionicLoading and ionicPopup within my controllers. Are these considered DOM interactions, and if so, where should they ideally be placed?