Responding to the first wave of comments:
- Be consistent with the regexp, and use a more explicit name.
- Use only angular, not window.angular
- Use element.injector() instead of element.data('$injector')
- Add more explicit tests to assure bootstrapping waits