Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Service that uses load-google-maps-api
import { Injectable } from '@angular/core';
import * as loadGoogleMapsApi from 'load-google-maps-api';
@Injectable()
class GoogleMapsService {
constructor() { }
load(googleAPIKey: string): any {
return loadGoogleMapsApi({ key: googleAPIKey });
}
}
export { GoogleMapsService };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.