@firestitch/address
Version:
@firestitch/address
17 lines (12 loc) • 426 B
text/typescript
import { Injectable, Inject } from '@angular/core';
import { LazyMapsAPILoaderConfigLiteral } from '@agm/core';
export class GoogleMapConfig implements LazyMapsAPILoaderConfigLiteral {
public apiKey: string = null;
public libraries: string[] = ['places'];
constructor(('GoogleMapKey') apiKey) {
if (!apiKey) {
throw new Error('GoogleMapKey injector invalid');
}
this.apiKey = apiKey;
}
};