feat(DomElementSchemaRegistry): add support for <ng-content> and <ng-container>

This commit is contained in:
Victor Berchet
2016-06-15 09:57:58 -07:00
parent e484c62a8d
commit b620f4f456
2 changed files with 15 additions and 1 deletions

View File

@ -265,7 +265,11 @@ export class DomElementSchemaRegistry extends ElementSchemaRegistry {
hasProperty(tagName: string, propName: string): boolean {
if (tagName.indexOf('-') !== -1) {
// can't tell now as we don't know which properties a custom element will get
if (tagName === 'ng-container' || tagName === 'ng-content') {
return false;
}
// Can't tell now as we don't know which properties a custom element will get
// once it is instantiated
return true;
} else {