mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Previously the built-in image loaders for the optimized image directive were tightly coupled to the preconnect checks infrastructure. This was creating a problem when developers were trying to provide a loader on a component level (or, more generally, deeper in the DI hierarchy): - PreconnectLinkChecker is the application-level service, provided in root; - it makes sense to provide loaders in different parts of the DI hierarchy; This refactoring removes the PreconnectLinkChecker configuration from the loaders infrastructure and makes it application-wide config. The PRECONNECT_CHECK_BLOCKLIST is also a simple provider (it was a multi-provider previously) which should make the overall configuration easier. PR Close #47565 |
||
|---|---|---|
| .. | ||
| image_loader_spec.ts | ||