Created
February 2, 2020 11:00
-
-
Save LarsBergqvist/2e385efd52d8f62885bfd404750f76d0 to your computer and use it in GitHub Desktop.
Service that uses load-google-maps-api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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