mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Currently, the `Router` will create the `EnvironmentInjector` for a `Route` with `providers` as soon as it _attempts_ to match segments to the `Route`. Instead, this change updates the logic to only create the injector once we have confirmed that the `Route` matches. Note that this will include partial matches where the final navigation still fails with a "cannot match any routes to segment" error. We need to maintain the injector hierarchy so we still need to create parent injectors before descending into the child routes and determining if there is a full match or just a partial one. resolves #45988 PR Close #45990 |
||
|---|---|---|
| .. | ||
| global | ||
| schematics | ||
| src | ||
| test | ||
| testing | ||
| BUILD.bazel | ||
| index.ts | ||
| package.json | ||
| PACKAGE.md | ||
| public_api.ts | ||