Last active
March 28, 2021 06:58
-
-
Save c-manna/1bd93572d9927f60a659b6a4e7bfd8fa to your computer and use it in GitHub Desktop.
Angular google maps (agm) complete guide - appModule
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 { NgModule } from "@angular/core"; | |
import { BrowserModule } from "@angular/platform-browser"; | |
import { AppComponent } from "./app.component"; | |
import { HelloComponent } from "./hello.component"; | |
import { AgmCoreModule } from "@agm/core"; | |
import { AgmJsMarkerClustererModule } from '@agm/js-marker-clusterer'; | |
import { AgmSnazzyInfoWindowModule } from '@agm/snazzy-info-window'; | |
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; | |
@NgModule({ | |
imports: [ | |
BrowserModule, | |
FormsModule, | |
ReactiveFormsModule, | |
AgmJsMarkerClustererModule, | |
AgmSnazzyInfoWindowModule, | |
AgmCoreModule.forRoot({ | |
apiKey: 'AIzaSyCI97YoHaUedCufy1KTPMjRdtt-TZejU8s', | |
language: "en", | |
libraries: ['places','geometry'] | |
}) | |
], | |
declarations: [AppComponent, HelloComponent], | |
bootstrap: [AppComponent] | |
}) | |
export class AppModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment