Skip to content

Instantly share code, notes, and snippets.

View app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `<agm-map
[latitude]="latitude"
[longitude]="longitude"
[zoom]="2"
(mapClick)="addMarker($event.coords.lat, $event.coords.lng)"
>
@pankajkrr
pankajkrr / file.ts
Created Aug 17, 2020
how to add google maps into angular app
View file.ts
// get showroom list...
getShowroomList(){
this._common.showLoader(true);
this._admin.geShowroomList().subscribe(result=>{
this._common.showLoader(false);
this.showrooms = result;
},error=>{
this._common.showLoader(false);
this._alert.error('Something went wrong');