What I'm looking for is a directive that functions like a typical ng-controller, but I need it to be invoked only after a promise has been resolved. To achieve this in HTML, it could be implemented as such:
<div ng-controller="myCtrl" ctrl-promise="p">
Where "p" represents any promise within the parent scope. I am aware of the method to delay the instantiation of a controller for a specific route (as discussed in this answer: Angular.js delaying controller initialization), however, I would prefer to set this on a per-controller basis rather than per route. While I could use ng-if with "p" as an attribute, I am curious if there is another approach?