Show an error that occurred when fetching a document.
(url: string, error: HttpErrorResponse)
| 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>) { |