Skip to main content

Posts

Showing posts with the label Angular 6 Google Maps

Angular Google Maps (AGM) Core - Angular 6 Google Maps components

In this article, I am going to share the Angular 6 Google Maps using the AGM Core. To archive, involves multiple steps which are the following. Explore it – Angular 6 Questions Steps 1 - Create your Angular 6 project and go to project directory and install the below command. Steps 2 - Install Angular 6 Google Maps npm install @ agm / core Steps 3 -Import the AgmCoreModule in the app.module.ts . import { AgmCoreModule } from '@agm/core' ; Steps 4 - And add the Agm Core Root for Google API key and it looks like – import { BrowserModule } from '@angular/platform-browser' ; import { NgModule ,   } from '@angular/core' ; import { AppComponent } from './app.component' ; import { AgmCoreModule } from '@agm/core' ; @ NgModule ({   declarations: [     AppComponent   ],   imports: [     BrowserModule ,     AgmCoreModule . forRoot ({   ...