Conditional module injection in Angular.js

I'm working on an Ionic project and trying to use Angular-UI's angular-google-maps.

However, since the regular, blocking way of loading the Maps JS API occasionally takes too long the app times out.

I'm trying to make angular-google-maps 'load' only when Google Maps' script finishes loading async, by using the defer attribute and loading the script asynchronously.

The problem is that the module is initialised before 'google' is available and it breaks. I'm looking for a way to delay the initialization of this module until it is possible to use.

Is there a way of having a 'proxy' or 'alias' module that injects the needed module when needed?

Or is there another way to control dependancy injection conditionally?

Thanks!