fix(core): support components without a selector (#10331)

Components without a selector now get the selector `ng-component`.
Directives without a selector will throw an error message.

Closes #3464
Closes #10216
This commit is contained in:
Tobias Bosch
2016-07-28 19:39:10 +02:00
committed by Hans
parent a67cc8229d
commit 9b39e499ac
8 changed files with 61 additions and 7 deletions

View File

@ -29,4 +29,6 @@ export class MockSchemaRegistry implements ElementSchemaRegistry {
var result = this.attrPropMapping[attrName];
return isPresent(result) ? result : attrName;
}
getDefaultComponentElementName(): string { return 'ng-component'; }
}