angular/packages
Andrew Scott 4e0957a4e1 feat(router): Add ability to specify providers on a Route (#45673)
Currently, the only way to specify new providers for a `Route` and the
children is to create a new `NgModule` with those providers and use the
`loadChildren` feature. This is pretty confusing and a wholly indirect
way of accomplishing this task. With this commit, developers will be
able to specify a list of providers directly on the `Route` itself.
These providers will apply the that route and its children.

This feature was inspired by the upcoming standalone components feature.
This ties in there because, as mentioned before, the prior art for lazy
loading configs was to load an `NgModule`. This loaded module contained
new route configs _and_ could specify new providers. Separating those
two concepts, there should be a way to load _just_ some new routes, but
there should also be a way to specify new providers as well (something
you could do in the `NgModule` world and now will be able to do in the
world without any `NgModule` through this feature).

PR Close #45673
2022-04-20 11:32:07 -07:00
..
animations refactor(animations): include pushUnrecognizedPropertiesWarning in ngDevMode check (#45591) 2022-04-11 21:06:03 +00:00
bazel build: update dependency @microsoft/api-extractor to v7.22.2 (#45641) 2022-04-15 09:27:39 -07:00
benchpress build: bump version for @angular/benchpress to v0.3.0 (#44893) 2022-01-31 21:27:08 +00:00
common test(http): Add + to encoding test (#45111) 2022-04-20 09:00:19 -07:00
compiler refactor(compiler-cli): propagate standalone flag in .d.ts metadata (#45672) 2022-04-20 05:45:57 -07:00
compiler-cli test(compiler-cli): tests for standalone components/directives/pipes (#45672) 2022-04-20 05:45:57 -07:00
core feat(router): Add ability to specify providers on a Route (#45673) 2022-04-20 11:32:07 -07:00
docs refactor: fix various typos across different packages (#44523) 2022-01-07 18:11:10 +00:00
elements feat(core): drop support for Node.js 12 (#45286) 2022-03-08 12:05:03 -08:00
examples refactor(core): drop all .ngfactory and .ngsummary imports (#44957) 2022-02-07 15:31:49 -08:00
forms fix(forms): Fix a typing bug in FormBuilder. (#45684) 2022-04-20 09:15:46 -07:00
language-service refactor(compiler-cli): unify tracked template scope dependencies (#45672) 2022-04-20 05:45:56 -07:00
localize build: update dependency glob to v8 (#45598) 2022-04-12 22:02:26 +00:00
misc/angular-in-memory-web-api build: enable useUnknownInCatchVariables (#44679) 2022-02-01 18:17:29 +00:00
platform-browser fix(platform-browser): remove obsolete shim for Map comparison in Jasmine (#45521) 2022-04-12 18:43:37 +00:00
platform-browser-dynamic feat(core): drop support for Node.js 12 (#45286) 2022-03-08 12:05:03 -08:00
platform-server refactor: replace deprecated String.prototype.substr() (#45397) 2022-03-24 11:48:09 -07:00
private/testing test: remove Ivy/ViewEngine switch helpers and obsolete tests (#44120) 2021-11-24 19:42:39 +00:00
router feat(router): Add ability to specify providers on a Route (#45673) 2022-04-20 11:32:07 -07:00
service-worker feat(bazel): allow for generated package.json files in ng_package (#45470) 2022-04-11 21:01:09 +00:00
upgrade refactor: replace deprecated String.prototype.substr() (#45397) 2022-03-24 11:48:09 -07:00
zone.js build: lock file maintenance (#45457) 2022-04-15 14:38:16 -07:00
BUILD.bazel build: Auto-gen tsec tsconfig files (#43440) 2021-09-17 17:17:34 +00:00
circular-deps-test.conf.js refactor: replace deprecated String.prototype.substr() (#45397) 2022-03-24 11:48:09 -07:00
empty.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
goog.d.ts refactor(core): replace references to goog.LOCALE with goog.getLocale() (#43089) 2021-08-10 10:35:26 -07:00
license-banner.txt build: bump license year (#44590) 2022-01-04 12:05:25 -08:00
README.md docs: add doc reference to npm package readme (#33911) 2019-11-20 14:46:23 -08:00
system.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
tsconfig-build.json build: enable useUnknownInCatchVariables (#44679) 2022-02-01 18:17:29 +00:00
tsconfig-legacy-saucelabs.json build: bundle spec files for saucelabs legacy job (#44281) 2021-11-30 11:56:04 -05:00
tsconfig-test.json build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
tsconfig-tsec-base.json build: update tsconfigs to use ES2020 as target and module (#43431) 2021-10-01 18:28:42 +00:00
tsconfig.json build: enable useUnknownInCatchVariables (#44679) 2022-02-01 18:17:29 +00:00
tsec-exemption.json build: Enable tsec checks for critical packages. (#43108) 2021-09-13 14:45:57 -07:00
types.d.ts build: update to jasmine 4.0 (#45558) 2022-04-11 16:25:28 +00:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT