Repository navigation
Conversation
crisbeto
marked this pull request as ready for review
July 6, 2019 08:25
alfaproject
reviewed
Jul 6, 2019
crisbeto
force-pushed
the
FW-1419/pipe-change-detector-ref
branch
from
July 6, 2019 10:11
54e83de to
6968e8c
Compare
Contributor
|
Stumbled upon by @BioPhoton. Investigated by @JoostK. Thanks for fixing! |
kara
suggested changes
Jul 9, 2019
crisbeto
force-pushed
the
FW-1419/pipe-change-detector-ref
branch
from
July 12, 2019 18:15
6968e8c to
9f502a9
Compare
Member
Author
|
@kara I've reworked it based on our discussion. Can you take another look? |
Contributor
kara
suggested changes
Jul 17, 2019
crisbeto
force-pushed
the
FW-1419/pipe-change-detector-ref
branch
from
July 19, 2019 16:59
c17c052 to
20f941b
Compare
Member
Author
|
Reworked to avoid the circular import @kara. |
Contributor
|
Still getting a cyclic dep error: Looks like the culprit is |
…ponent inputs When injecting a `ChangeDetectorRef` into a pipe, the expected result is that the ref will be tied to the component in which the pipe is being used. This works for most cases, however when a pipe is used inside a property binding of a component (see test case as an example), the current `TNode` is pointing to component's host so we end up injecting the inner component's view. These changes fix the issue by only looking up the component view of the `TNode` if the `TNode` is a parent. This PR resolves FW-1419.
crisbeto
force-pushed
the
FW-1419/pipe-change-detector-ref
branch
from
July 21, 2019 11:28
20f941b to
f4753c3
Compare
Member
Author
|
Updated again @kara. For future reference, is there a way I can check this myself so we don't have to go back and forth as much? |
… in component inputs
crisbeto
force-pushed
the
FW-1419/pipe-change-detector-ref
branch
from
July 21, 2019 19:17
f4753c3 to
0f621ec
Compare
Contributor
Contributor
|
merge-assistance: global approval |
sabeersulaiman
pushed a commit
to sabeersulaiman/angular
that referenced
this pull request
Sep 6, 2019
…ponent inputs (angular#31438) When injecting a `ChangeDetectorRef` into a pipe, the expected result is that the ref will be tied to the component in which the pipe is being used. This works for most cases, however when a pipe is used inside a property binding of a component (see test case as an example), the current `TNode` is pointing to component's host so we end up injecting the inner component's view. These changes fix the issue by only looking up the component view of the `TNode` if the `TNode` is a parent. This PR resolves FW-1419. PR Close angular#31438
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When injecting a
ChangeDetectorRefinto a pipe, the expected result is that the ref will be tied to the component in which the pipe is being used. This works for most cases, however when a pipe is used inside a property binding of a component (see test case as an example), the currentTNodeis pointing to component's host so we end up injecting the inner component's view. These changes fix the issue by only looking up the component view of theTNodeif theTNodeis a parent.This PR resolves FW-1419.