feat(ivy): add basic support for ng-container (#25227)

This commit adds basic support for <ng-container> - most of the
functionality should work as long as <ng-container> is a child of
a regular element.

PR Close #25227
This commit is contained in:
Pawel Kozlowski
2018-07-26 17:22:41 +02:00
committed by Kara Erickson
parent 4f741e74e1
commit 28c7a4efbc
9 changed files with 236 additions and 26 deletions

View File

@ -222,7 +222,8 @@ export function toHtml<T>(componentOrElement: T | RElement): string {
.replace(/^<div fixture="mark">/, '')
.replace(/<\/div>$/, '')
.replace(' style=""', '')
.replace(/<!--container-->/g, '');
.replace(/<!--container-->/g, '')
.replace(/<!--ng-container-->/g, '');
}
}