feat(core): add @Component.precompile and ComponentFactoryResolver

Part to #9467
Closes #9543
This commit is contained in:
Tobias Bosch
2016-06-22 14:06:23 -07:00
parent 9ed8f2d26e
commit 6c5b653593
23 changed files with 419 additions and 110 deletions

View File

@ -74,6 +74,8 @@ export interface Type extends Function {}
*/
export interface ConcreteType extends Type { new (...args: any[] /** TODO #9100 */): any; }
export interface ClassWithConstructor<T> { new (...args: any[]): T; }
export function getTypeNameForDebugging(type: Type): string {
if (type['name']) {
return type['name'];