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

Method constructor

src/material/icon/icon-registry.ts:151–158  ·  view source on GitHub ↗
(
    @Optional() private _httpClient: HttpClient,
    private _sanitizer: DomSanitizer,
    @Optional() @Inject(DOCUMENT) document: any,
    private readonly _errorHandler: ErrorHandler,
  )

Source from the content-addressed store, hash-verified

149 private _defaultFontSetClass: string[] | undefined;
150
151 constructor(
152 @Optional() private _httpClient: HttpClient,
153 private _sanitizer: DomSanitizer,
154 @Optional() @Inject(DOCUMENT) document: any,
155 private readonly _errorHandler: ErrorHandler,
156 ) {
157 this._document = document;
158 }
159
160 /**
161 * Registers an icon by URL in the default namespace.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected