Fetch a document by URL.
(url: string)
| 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. |
no test coverage detected