MCPcopy Create free account
hub / github.com/angular/components / handleClick

Method handleClick

src/dev-app/google-map/google-map-demo.ts:159–163  ·  view source on GitHub ↗
(event: google.maps.MapMouseEvent)

Source from the content-addressed store, hash-verified

157 }
158
159 handleClick(event: google.maps.MapMouseEvent) {
160 if (event.latLng) {
161 this.markerPositions.push(event.latLng.toJSON());
162 }
163 }
164
165 handleMove(event: google.maps.MapMouseEvent) {
166 this.display = event.latLng?.toJSON();

Callers

nothing calls this directly

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected