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

Method _fetchDocument

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

Fetch a document by URL.

(url: string)

Source from the content-addressed store, hash-verified

134
135 /** Fetch a document by URL. */
136 private _fetchDocument(url: string) {
137 this._documentFetchSubscription?.unsubscribe();
138 this._documentFetchSubscription = this._docFetcher.fetchDocument(url).subscribe(
139 document => this._updateDocument(document),
140 error => this._showError(url, error),
141 );
142 }
143
144 /**
145 * 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