NgDocIconRegistry
Loads SVG icons and keeps them for the lifetime of the application.
Every URL is requested once and shared by all icons that show it, whether or not the application registers HTTP interceptors. A failed request is logged and remembered: reading the icon again does not send a new request, only does. A response that is not SVG markup counts as a failure: dev servers answer a missing file with the application's index.html, which must not be rendered as an icon.
- Decorators
@Service
@Service ()
export class NgDocIconRegistry { … }Members
Methods2 | ||||||||||
(…): | Returns the SVG markup stored at | |||||||||
Signature Parameters
Returns | ||||||||||
(…): void | Requests | |||||||||
Signature Parameters
Returns void | ||||||||||