New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attribute in deps stopped working with Ivy #36479
Labels
area: core
Issues related to the framework runtime
core: di
freq1: low
P2
The issue is important to a large percentage of users, with a workaround
regression
Indicates than the issue relates to something that worked in a previous version
state: has PR
type: bug/fix
Milestone
Comments
kara
added
type: bug/fix
regression
Indicates than the issue relates to something that worked in a previous version
freq1: low
labels
Apr 7, 2020
@AndrewKushnir i can take a look at this. |
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
Apr 21, 2020
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
Apr 21, 2020
14 tasks
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
Apr 21, 2020
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
Apr 21, 2020
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
Apr 22, 2020
Injecting a new `Attribute` through `deps` is currently not working in `ivy`. To fix this, the `injectArgs` function needs to be moved into a common place, that does not cause any circular dependencies. PR Closes angular#36479
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
Apr 22, 2020
Injecting a new `Attribute` through `deps` is currently not working in `ivy`. To fix this, the `injectArgs` function needs to be moved into a common place, that does not cause any circular dependencies. PR Closes angular#36479
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
Apr 24, 2020
Injecting a new `Attribute` through `deps` is currently not working in `ivy`. To fix this, the `injectArgs` function needs to be moved into a common place, that does not cause any circular dependencies. PR Closes angular#36479
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
Apr 24, 2020
Injecting a new `Attribute` through `deps` is currently not working in `ivy`. To fix this, the `injectArgs` function needs to be moved into a common place, that does not cause any circular dependencies. PR Closes angular#36479
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
Apr 24, 2020
This commit fixes a bug when injecting `Attribute`'s using `deps` in `ivy`. This was caused by the missing condition in the `injectArgs` function. This commit specifically also takes care of the following: - Removes existing circular dependencies caused by importing the tokens `InjectFlags`, `InjectionToken`, `resolveForwardRef` from the `di` instructions. - Updates `bundle.golden_symbols.json` with the tokens. - Updates payload limits for `main-es2015` from 137320 to 138095, which is caused by `Attribute` decorator. PR Closes angular#36479
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
Apr 28, 2020
This commit moves the `injectArgs` function that is used in multiple places into `util.ts` file. It should help avoid circular dependency issues when the function is updated or used in other places. PR Closes angular#36479
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
Apr 28, 2020
This commit fixes a bug when `Attribute` DI decorator is used in the `deps` section of a token that uses a factory function. The problem appeared because the `Attribute` DI decorator was not handled correctly while injecting factory function attributes. Note: the fix required referencing the `injectAttribute` function (to properly inject attribute value), so that triggered payload size limits update. PR Closes angular#36479
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
May 7, 2020
This commit moves the `injectArgs` function that is used in multiple places into `util.ts` file. It should help avoid circular dependency issues when the function is updated or used in other places. PR Closes angular#36479
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
May 7, 2020
This commit fixes a bug when `Attribute` DI decorator is used in the `deps` section of a token that uses a factory function. The problem appeared because the `Attribute` DI decorator was not handled correctly while injecting factory function attributes. Note: the fix required referencing the `injectAttribute` function (to properly inject attribute value), so that triggered payload size limits update. PR Closes angular#36479
waterplea
added a commit
to ng-web-apis/canvas
that referenced
this issue
May 9, 2020
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
Sep 9, 2020
This commit fixes a bug when `Attribute` DI decorator is used in the `deps` section of a token that uses a factory function. The problem appeared because the `Attribute` DI decorator was not handled correctly while injecting factory function attributes. Note: the fix required referencing the `injectAttribute` function (to properly inject attribute value), so that triggered payload size limits update. Closes angular#36479
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
Sep 9, 2020
This commit fixes a bug when `Attribute` DI decorator is used in the `deps` section of a token that uses a factory function. The problem appeared because the `Attribute` DI decorator was not handled correctly while injecting factory function attributes. Closes angular#36479
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
Sep 11, 2020
This commit fixes a bug when `Attribute` DI decorator is used in the `deps` section of a token that uses a factory function. The problem appeared because the `Attribute` DI decorator was not handled correctly while injecting factory function attributes. Closes angular#36479
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
Sep 19, 2020
This commit fixes a bug when `Attribute` DI decorator is used in the `deps` section of a token that uses a factory function. The problem appeared because the `Attribute` DI decorator was not handled correctly while injecting factory function attributes. Closes angular#36479
jelbourn
added
the
P2
The issue is important to a large percentage of users, with a workaround
label
Oct 1, 2020
sonukapoor
added a commit
to sonukapoor/angular
that referenced
this issue
Oct 2, 2020
This commit fixes a bug when `Attribute` DI decorator is used in the `deps` section of a token that uses a factory function. The problem appeared because the `Attribute` DI decorator was not handled correctly while injecting factory function attributes. Closes angular#36479
14 tasks
mhevery
pushed a commit
to sonukapoor/angular
that referenced
this issue
Nov 18, 2020
This commit fixes a bug when `Attribute` DI decorator is used in the `deps` section of a token that uses a factory function. The problem appeared because the `Attribute` DI decorator was not handled correctly while injecting factory function attributes. Closes angular#36479
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: core
Issues related to the framework runtime
core: di
freq1: low
P2
The issue is important to a large percentage of users, with a workaround
regression
Indicates than the issue relates to something that worked in a previous version
state: has PR
type: bug/fix
🐞 bug report
Affected Package
The issue is caused by package @angular/coreIs this a regression?
Yes, the previous version in which this bug was not present was: 8Description
You can use
Attribute
decorator indeps
for providers like this:It stopped working with Ivy and Angular 9
🔬 Minimal Reproduction
Working Angular 8:
https://stackblitz.com/edit/angular-attribute-deps
Broken Angular 9:
https://ng-run.com/edit/hyppU3cXJCaRYLYVDAQp
🔥 Exception or Error
🌍 Your Environment
Angular Version:
The text was updated successfully, but these errors were encountered: