mirror of
https://github.com/angular/angular.git
synced 2026-11-30 02:18:49 -05:00
Previously, when instantiating a component, Angular would look in the DI hierarchy for `RendererFactory2`. Any DI tree which rolls up through an application injector (that is, one created with `BrowserModule`) should be able to provide this interface. If not found, Angular would switch to the experimental `Renderer3` mechanism. This switch was designed this way, because it allowed for the creation of experimental applications where `RendererFactory2` was not included in the bundle at all. In this commit, instead of automatically falling back on `Renderer3`-style rendering, an error is raised instead if `RendererFactory2` is missing from the DI hierarchy. PR Close #46605