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
[attr.width.px] can't work in angular9 #36256
Comments
|
tl;dr; this is not the valid syntax and it just "happened to work" in previous versions of Angular. As @DreamLi1314 suggested you need to use one of:
What was happening with the VE attribute parser that any suffix would be dropped without any warning ( https://stackblitz.com/edit/angular-9qzvjk) which isn't greatest user experience... I'm going to keep this issue open so we can decide what to do here (probably error when detecting such usage pattern). |
ok, thanks. |
Thinking about it a bit more, I would say that, as the very minimum, we should have compile-time error when encountering |
Not working in Angular 11
|
…ings This commit adds an extended diagnostic which warns when style suffixes such as '.px' are used with attribute bindings (attr.width.px). Fixes angular#36256
…ings This commit adds an extended diagnostic which warns when style suffixes such as '.px' are used with attribute bindings (attr.width.px). Fixes angular#36256
…ings This commit adds an extended diagnostic which warns when style suffixes such as '.px' are used with attribute bindings (attr.width.px). Fixes angular#36256
…ings This commit adds an extended diagnostic which warns when style suffixes such as '.px' are used with attribute bindings (attr.width.px). Fixes angular#36256
…ings This commit adds an extended diagnostic which warns when style suffixes such as '.px' are used with attribute bindings (attr.width.px). Fixes angular#36256
…ings This commit adds an extended diagnostic which warns when style suffixes such as '.px' are used with attribute bindings (attr.width.px). Fixes angular#36256
…ings This commit adds an extended diagnostic which warns when style suffixes such as '.px' are used with attribute bindings (attr.width.px). Fixes angular#36256
…ings This commit adds an extended diagnostic which warns when style suffixes such as '.px' are used with attribute bindings (attr.width.px). Fixes angular#36256
…ings This commit adds an extended diagnostic which warns when style suffixes such as '.px' are used with attribute bindings (attr.width.px). Fixes angular#36256
…ings This commit adds an extended diagnostic which warns when style suffixes such as '.px' are used with attribute bindings (attr.width.px). Fixes angular#36256
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. |
Env
package.json
Desc
Rendering failed because the property was compiled to
width.px
The text was updated successfully, but these errors were encountered: