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