angular-cn/packages
Andrew Kushnir 0bf6e58db2 fix(compiler): process `imports` first and `declarations` second while calculating scopes (#35850)
Prior to this commit, while calculating the scope for a module, Ivy compiler processed `declarations` field first and `imports` after that. That results in a couple issues:

* for Pipes with the same `name` and present in `declarations` and in an imported module, Pipe from imported module was selected. In View Engine the logic is opposite: Pipes from `declarations` field receive higher priority.
* for Directives with the same selector and present in `declarations` and in an imported module, we first invoked the logic of a Directive from `declarations` field and after that - imported Directive logic. In View Engine, it was the opposite and the logic of a Directive from the `declarations` field was invoked last.

In order to align Ivy and View Engine behavior, this commit updates the logic in which we populate module scope: we first process all imports and after that handle `declarations` field. As a result, in Ivy both use-cases listed above work similar to View Engine.

Resolves #35502.

PR Close #35850
2020-03-10 14:16:59 -04:00
..
animations Revert "fix(animations): process shorthand `margin` and `padding` styles correctly (#35701)" (#35847) 2020-03-04 18:22:09 +00:00
bazel Revert "feat(bazel): transform generated shims (in Ivy) with tsickle (#35848)" (#35970) 2020-03-09 17:00:14 -04:00
benchpress build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
common fix(ivy): narrow `NgIf` context variables in template type checker (#35125) 2020-02-28 07:39:57 -08:00
compiler refactor(compiler): optionalOperator -> consumeOptionalOperator (#35980) 2020-03-10 13:27:37 -04:00
compiler-cli fix(compiler): process `imports` first and `declarations` second while calculating scopes (#35850) 2020-03-10 14:16:59 -04:00
core fix(compiler): process `imports` first and `declarations` second while calculating scopes (#35850) 2020-03-10 14:16:59 -04:00
docs
elements build: fix elements test failures on IE (#35940) 2020-03-10 14:16:34 -04:00
examples docs: changes AoT to AOT for consistency (#35112) 2020-02-04 10:43:33 -08:00
forms build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
http build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
language-service fix(language-service): resolve the variable from the template context first (#35982) 2020-03-10 13:27:04 -04:00
localize fix(localize): merge translation from all XLIFF `<file>` elements (#35936) 2020-03-09 13:06:05 -04:00
platform-browser fix(platform-browser): add missing peerDependency on `@angular/animations` (#35949) 2020-03-10 13:28:32 -04:00
platform-browser-dynamic build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
platform-server build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
platform-webworker build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
platform-webworker-dynamic build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
private/testing build: migrate determining if Ivy is enabled in typescript genrule files to use angular_ivy_enabled (#33983) 2019-11-26 16:38:40 -05:00
router test(router): use pageYOffset in testing when scrollY is not available (#35976) 2020-03-10 13:28:04 -04:00
service-worker build: no longer run tslint from within gulp task (#35800) 2020-03-03 09:20:49 -08:00
upgrade build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
zone.js Revert "feat: Monkey patches MessagePort onproperties (onmessage/onmessageerror) (#34610)" (#35973) 2020-03-09 17:31:28 -04:00
BUILD.bazel
README.md
empty.ts
goog.d.ts
license-banner.txt build: bump year (#34651) 2020-01-13 07:21:43 -08:00
system.d.ts build: no longer run tslint from within gulp task (#35800) 2020-03-03 09:20:49 -08:00
tsconfig-build-no-strict.json
tsconfig-build.json
tsconfig-test.json
tsconfig.json build: enable IDE type checking of $localize code (#35711) 2020-02-28 07:09:50 -08:00
types.d.ts

README.md

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