angular-docs-cn/tools
Alex Rickabaugh 60aeee7abf feat(ivy): selector side of ModuleWithProviders via type metadata (#24862)
Within an @NgModule it's common to include in the imports a call to
a ModuleWithProviders function, for example RouterModule.forRoot().
The old ngc compiler was able to handle this pattern because it had
global knowledge of metadata of not only the input compilation unit
but also all dependencies.

The ngtsc compiler for Ivy doesn't have this knowledge, so the
pattern of ModuleWithProviders functions is more difficult. ngtsc
must be able to determine which module is imported via the function
in order to expand the selector scope and properly tree-shake
directives and pipes.

This commit implements a solution to this problem, by adding a type
parameter to ModuleWithProviders through which the actual module
type can be passed between compilation units.

The provider side isn't a problem because the imports are always
copied directly to the ngInjectorDef.

PR Close #24862
2018-07-20 11:48:35 -07:00
..
build
cjs-jasmine test: run unit tests in random order (#19904) 2018-07-06 13:48:02 -07:00
code.angularjs.org
gulp-tasks fix(common): use correct currency format for locale de-AT (#24658) 2018-07-09 15:10:06 -07:00
http-server feat(bazel): protractor_web_test_suite for release (#24787) 2018-07-12 16:34:45 -04:00
ngcontainer build: update to Bazel 0.15 (#24841) 2018-07-13 15:05:16 -04:00
npm
public_api_guard feat(ivy): selector side of ModuleWithProviders via type metadata (#24862) 2018-07-20 11:48:35 -07:00
source-map-test
symbol-extractor build(bazel): update to rule_nodejs 0.10.0 (#24759) 2018-07-06 10:17:36 -07:00
testing
travis
tree-shaking-test
ts-api-guardian build(bazel): update to rule_nodejs 0.10.0 (#24759) 2018-07-06 10:17:36 -07:00
tsc-watch build: make `internal-angular` karma reporter compatible with latest karma (#24803) 2018-07-09 15:10:49 -07:00
tslint
types-ext build: upgrade jasmine (and related typings) to latest version (#19904) 2018-07-06 13:48:02 -07:00
validate-commit-message build(bazel): turn on preserve-symlinks (#24881) 2018-07-20 10:37:30 -07:00
yarn
BUILD.bazel
bazel.rc
bazel_stamp_vars.sh
check-environment.js
defaults.bzl
jasmine-seed-generator.js test: run unit tests in random order (#19904) 2018-07-06 13:48:02 -07:00
jsconfig.json
postinstall-patches.js
tsconfig.json
types.d.ts
utils.inc