fix(ivy): register to directive outputs on ng-template / ng-container (#25698)

Runtime part of #25697

PR Close #25698
This commit is contained in:
Pawel Kozlowski
2018-08-28 15:31:09 +02:00
committed by Misko Hevery
parent 3809e0fcae
commit 371df35624
3 changed files with 89 additions and 41 deletions

View File

@ -862,25 +862,6 @@ describe('render3 integration test', () => {
expect(fixture.html).toEqual('<div></div>');
});
it('should throw when trying to add event listener', () => {
/**
* <div><ng-container (click)="..."></ng-container></div>
*/
function Template() {
elementStart(0, 'div');
{
elementContainerStart(1);
{
listener('click', function() {});
}
elementContainerEnd();
}
elementEnd();
}
expect(() => { new TemplateFixture(Template, () => {}, 2); }).toThrow();
});
});
describe('tree', () => {