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

Method _showError

docs/src/app/shared/doc-viewer/doc-viewer.ts:187–190  ·  view source on GitHub ↗

Show an error that occurred when fetching a document.

(url: string, error: HttpErrorResponse)

Source from the content-addressed store, hash-verified

185
186 /** Show an error that occurred when fetching a document. */
187 private _showError(url: string, error: HttpErrorResponse) {
188 console.error(error);
189 this._elementRef.nativeElement.innerText = `Failed to load document: ${url}. Error: ${error.statusText}`;
190 }
191
192 /** Instantiate a ExampleViewer for each example. */
193 private _loadComponents(componentName: string, componentClass: Type<ExampleViewer | HeaderLink>) {

Callers 1

_fetchDocumentMethod · 0.95

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected