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

Method _initialize

src/google-maps/google-map/google-map.ts:325–331  ·  view source on GitHub ↗
(mapConstructor: typeof google.maps.Map)

Source from the content-addressed store, hash-verified

323 }
324
325 private _initialize(mapConstructor: typeof google.maps.Map) {
326 this._ngZone.runOutsideAngular(() => {
327 this.googleMap = new mapConstructor(this._mapEl, this._combineOptions());
328 this._eventManager.setTarget(this.googleMap);
329 this.mapInitialized.emit(this.googleMap);
330 });
331 }
332
333 ngOnDestroy() {
334 this.mapInitialized.complete();

Callers 1

ngOnInitMethod · 0.95

Calls 2

_combineOptionsMethod · 0.95
setTargetMethod · 0.80

Tested by

no test coverage detected