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

Method ngOnInit

src/material/icon/icon.ts:289–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

287 }
288
289 ngOnInit() {
290 // Update font classes because ngOnChanges won't be called if none of the inputs are present,
291 // e.g. <mat-icon>arrow</mat-icon> In this case we need to add a CSS class for the default font.
292 this._updateFontIconClasses();
293 }
294
295 ngAfterViewChecked() {
296 const cachedElements = this._elementsWithExternalReferences;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected