NgDocContentController
Owns one body or header content source for one component instance. Provide it in the component's providers; it holds a pending task from each load until the processors accept the loaded HTML.
- Decorators
@Injectable
@Injectable ()
export class NgDocContentController { … }Members
Constructor1 | |||||||
() | — | ||||||
Signature | |||||||
Properties4 | |||||||
error: | The load or processing error of the current source. | ||||||
html: | The loaded HTML. | ||||||
settled: | Whether the latest load of the current source has been rendered: its version was processed, or the load or its processing failed. False while a load or its processing is pending. | ||||||
version: | Increments whenever the HTML must be processed again. | ||||||
Methods5 | |||||||
(…): void | Loads the source and reloads it whenever the source reports a change. Connecting the connected source again does nothing. | ||||||
Signature Parameters
Returns void | |||||||
(): void | Cancels the current load and releases its pending task. Called on destroy. | ||||||
Signature Returns void | |||||||
(): void | Drops the current source and clears the HTML. | ||||||
Signature Returns void | |||||||
(…): void | Accepts a processing pass. Only the pass of the current version counts. | ||||||
Signature Parameters
Returns void | |||||||
(…): void | Reports a failed processing pass. Only a failure of the current version counts. | ||||||
Signature Parameters
Returns void | |||||||