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

Vcref projection #23272

Closed
wants to merge 1 commit into from
Closed

Conversation

marclaval
Copy link
Contributor

Only the second commit is to be reviewed, the first one comes from #23189

@marclaval marclaval added action: review The PR is still awaiting reviews from at least one requested reviewer target: major This PR is targeted for the next major release comp: ivy labels Apr 9, 2018
@mary-poppins
Copy link

You can preview d1373e4 at https://pr23272-d1373e4.ngbuilds.io/.

@mhevery mhevery self-requested a review April 9, 2018 20:50
@mhevery mhevery removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Apr 9, 2018
@mhevery mhevery added this to the merg milestone Apr 9, 2018
@mhevery mhevery added the action: merge The PR is ready for merge by the caretaker label Apr 9, 2018
@vicb vicb added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Apr 9, 2018
@vicb
Copy link
Contributor

vicb commented Apr 9, 2018

merge-assistance -> depends on 23189

@@ -490,4 +490,7 @@ export function appendProjectedNode(
addRemoveViewFromContainer(node as LContainerNode, views[i], true, null);
}
}
if (node.dynamicLContainerNode) {
node.dynamicLContainerNode.data.renderParent = currentParent as LElementNode;
Copy link
Contributor

Choose a reason for hiding this comment

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

By looking at this is code, it is not clear to me why currentParent is a LElementNode.

Add a comment and/or assert ?


beforeEach(() => { directiveInstance = null; });
constructor(public vcref: ViewContainerRef) {}
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: Add a comment in the lines of "injecting a ViewContainerRef to create a dynamic blablabla"

.toEqual('<child><div><header vcref="">blah</header><span>bar</span></div></child>');
});

@Component({
Copy link
Contributor

@vicb vicb Apr 9, 2018

Choose a reason for hiding this comment

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

This seems to belong in the it() below.

EDIT: Nope it doesn't. Either leave it here or wrap the Component + the 2 tests in a describe ?

Copy link
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

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

see inline comments

@IgorMinar
Copy link
Contributor

I rebased this and force-pushed

@mary-poppins
Copy link

You can preview 71b0783 at https://pr23272-71b0783.ngbuilds.io/.

@marclaval
Copy link
Contributor Author

@vicb the changes that you requested are in #23287

@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 Sep 13, 2019
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 cla: yes merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants