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

Method ngOnInit

src/google-maps/map-base-layer.ts:21–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 protected readonly _ngZone = inject(NgZone);
20
21 ngOnInit() {
22 if (this._map._isBrowser) {
23 this._ngZone.runOutsideAngular(() => {
24 this._initializeObject();
25 });
26 this._assertInitialized();
27 this._setMap();
28 }
29 }
30
31 ngOnDestroy() {
32 this._unsetMap();

Callers

nothing calls this directly

Calls 3

_initializeObjectMethod · 0.95
_assertInitializedMethod · 0.95
_setMapMethod · 0.95

Tested by

no test coverage detected