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

Method ngOnInit

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected