8000 "in" keyword inside NgIf throws error · Issue #49612 · angular/angular · GitHub
[go: up one dir, main page]

Skip to content

"in" keyword inside NgIf throws error #49612

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

Closed
zetti-caletti opened this issue Mar 28, 2023 · 2 comments
Closed

"in" keyword inside NgIf throws error #49612

zetti-caletti opened this issue Mar 28, 2023 · 2 comments
Labels
area: compiler Issues related to `ngc`, Angular's template compiler area: core Issues related to the framework runtime core: binding & interpolation Issue related to property/attribute binding or text interpolation
Milestone

Comments

@zetti-caletti
Copy link

Which @angular/* package(s) are the source of the bug?

common

Is this a regression?

Yes

Description

When using 'foo' in bla it throws an error "Can't bind to 'ngIfIn' since it isn't a known property of 'div'"

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/angular-ft5mwg?file=src%2Fmain.ts

Please provide the exception or error you saw

Can't bind to 'ngIfIn' since it isn't a known property of 'div'

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 15.2.4
Node: 16.13.0
Package Manager: npm 8.7.0
OS: linux x64

Angular: 
... 

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1502.4 (cli-only)
@angular-devkit/core         15.2.4 (cli-only)
@angular-devkit/schematics   15.2.4 (cli-only)
@schematics/angular          15.2.4 (cli-only)

Anything else?

No response

@pkozlowski-opensource pkozlowski-opensource added area: core Issues related to the framework runtime core: binding & interpolation Issue related to property/attribute binding or text interpolation labels Mar 28, 2023
@ngbot ngbot bot modified the milestone: needsTriage Mar 28, 2023
@pkozlowski-opensource pkozlowski-opensource added the area: compiler Issues related to `ngc`, Angular's template compiler label Mar 28, 2023
@JoostK
Copy link
Member
JoostK commented Apr 5, 2023

This happens because the in keyword is not supported in Angular's expression syntax. This has been reported in #38560 and is now being tracked in #43485.

@JoostK JoostK closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2023
JeanMeche added a commit to JeanMeche/angular that referenced this issue Apr 6, 2023
This commit add the support of the `in` operator to the Expression Parser.

Fixes angular#49612
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: compiler Issues related to `ngc`, Angular's template compiler area: core Issues related to the framework runtime core: binding & interpolation Issue related to property/attribute binding or text interpolation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
0