Skip to content
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

fix(compiler): check more cases for pipe usage inside host bindings #37883

Closed

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Jul 2, 2020

Builds on top of #34655 to support more cases that could be using a pipe inside host bindings (e.g. ternary expressions or function calls).

Fixes #37610.

@crisbeto crisbeto added area: compiler Issues related to `ngc`, Angular's template compiler action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Jul 2, 2020
@ngbot ngbot bot added this to the needsTriage milestone Jul 2, 2020
@crisbeto crisbeto marked this pull request as ready for review July 2, 2020 07:18
@pullapprove pullapprove bot requested a review from JoostK July 2, 2020 07:18
packages/compiler-cli/test/ngtsc/ngtsc_spec.ts Outdated Show resolved Hide resolved
packages/compiler/src/expression_parser/parser.ts Outdated Show resolved Hide resolved
packages/compiler/src/expression_parser/parser.ts Outdated Show resolved Hide resolved
Builds on top of angular#34655 to support more cases that could be using a pipe inside host bindings (e.g. ternary expressions or function calls).

Fixes angular#37610.
@crisbeto crisbeto force-pushed the FW-2270/host-binding-pipe-errors branch from b7a5b7d to 2e04428 Compare July 4, 2020 07:22
@crisbeto
Copy link
Member Author

crisbeto commented Jul 4, 2020

Thanks for the feedback @JoostK, the recursive visitor definitely cleaned things up 👍. Can you take another look?

Copy link
Member

@JoostK JoostK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@crisbeto crisbeto added action: presubmit The PR is in need of a google3 presubmit action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jul 4, 2020
atscott pushed a commit that referenced this pull request Jul 10, 2020
…37883)

Builds on top of #34655 to support more cases that could be using a pipe inside host bindings (e.g. ternary expressions or function calls).

Fixes #37610.

PR Close #37883
@atscott atscott closed this in 9322b9a Jul 10, 2020
@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 Aug 10, 2020
profanis pushed a commit to profanis/angular that referenced this pull request Sep 5, 2020
…ngular#37883)

Builds on top of angular#34655 to support more cases that could be using a pipe inside host bindings (e.g. ternary expressions or function calls).

Fixes angular#37610.

PR Close angular#37883
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker action: presubmit The PR is in need of a google3 presubmit area: compiler Issues related to `ngc`, Angular's template compiler cla: yes target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ivy + @Component.host + async pipe binding - Unexpected Node Error (Ivy Only)
3 participants