To asynchronously load Google maps:
config.js
:
System.config({
"paths": {
"maps": "google-maps-url"
}
});
bootstrap.js
:
import 'maps!async';
Note: The google
global won't be available until it calls a callback included in the URL.
All the heavy lifting done in this thread. so all credit goes to them.
MIT