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

Method _fetchDocument

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

Fetch a document by URL.

(url: string)

Source from the content-addressed store, hash-verified

141
142 /** Fetch a document by URL. */
143 private _fetchDocument(url: string) {
144 this._documentFetchSubscription?.unsubscribe();
145 this._documentFetchSubscription = this._docFetcher.fetchDocument(url).subscribe(
146 document => this._updateDocument(document),
147 error => this._showError(url, error),
148 );
149 }
150
151 /**
152 * Updates the displayed document.

Callers 1

documentMethod · 0.95

Calls 3

_updateDocumentMethod · 0.95
_showErrorMethod · 0.95
fetchDocumentMethod · 0.80

Tested by

no test coverage detected