How to use the @agm/core.AgmCoreModule function in @agm/core

To help you get started, we’ve selected a few @agm/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github explooosion / Agm-Direction / playground / index.js View on Github external
var AppModule = (function () {
    function AppModule() {
    }
    AppModule = __decorate([
        core_1.NgModule({
            bootstrap: [AppComponent],
            declarations: [AppComponent],
            imports: [
                platform_browser_1.BrowserModule,
                forms_1.FormsModule,
                core_3.AgmCoreModule.forRoot({
                    apiKey: 'AIzaSyDFTKbcSXEN22pUx3zfaabEOGyy7oOZtmI'
                }),
                dist_1.AgmDirectionModule
            ]
        })
    ], AppModule);
    return AppModule;
}());
platform_browser_dynamic_1.platformBrowserDynamic().bootstrapModule(AppModule);