fix(ivy): properly project individual nodes (#28152)

PR Close #28152
This commit is contained in:
Pawel Kozlowski 2019-01-15 14:46:10 +01:00 committed by Alex Rickabaugh
parent f59f18c13e
commit 808898d015
2 changed files with 4 additions and 4 deletions

View File

@ -2398,8 +2398,8 @@ export function projectionDef(selectors?: CssSelectorList[], textSelectors?: str
tails[bucketIndex] !.next = componentChild;
} else {
pData[bucketIndex] = componentChild;
componentChild.next = null;
}
componentChild.next = null;
tails[bucketIndex] = componentChild;
componentChild = nextNode;

View File

@ -95,7 +95,7 @@ describe('projection', () => {
expect(main.nativeElement).toHaveText('I AM PROJECTED');
});
fixmeIvy('unknown').it('should support multiple content tags', () => {
it('should support multiple content tags', () => {
TestBed.configureTestingModule({declarations: [MultipleContentTagsComponent]});
TestBed.overrideComponent(MainComp, {
set: {
@ -195,7 +195,7 @@ describe('projection', () => {
expect(main.nativeElement).toHaveText('OUTER(INNER(INNERINNER(A,BC)))');
});
fixmeIvy('unknown').it('should redistribute when the shadow dom changes', () => {
it('should redistribute when the shadow dom changes', () => {
TestBed.configureTestingModule(
{declarations: [ConditionalContentComponent, ManualViewportDirective]});
TestBed.overrideComponent(MainComp, {
@ -302,7 +302,7 @@ describe('projection', () => {
expect(main.nativeElement).toHaveText('SIMPLE()START(A)END');
});
fixmeIvy('unknown').it('should support moving ng-content around', () => {
it('should support moving ng-content around', () => {
TestBed.configureTestingModule(
{declarations: [ConditionalContentComponent, ProjectDirective, ManualViewportDirective]});
TestBed.overrideComponent(MainComp, {