feat(core): add syntax sugar to make @View optional

This commit is contained in:
vsavkin
2015-10-06 17:03:37 -07:00
committed by Victor Savkin
parent f7b75330e0
commit bd31b01690
7 changed files with 264 additions and 12 deletions

View File

@ -228,6 +228,13 @@ export interface ComponentFactory {
queries?: {[key: string]: any},
viewBindings?: any[],
changeDetection?: ChangeDetectionStrategy,
templateUrl?: string,
template?: string,
styleUrls?: string[],
styles?: string[],
directives?: Array<Type | any[]>,
pipes?: Array<Type | any[]>,
encapsulation?: ViewEncapsulation
}): ComponentDecorator;
new (obj: {
selector?: string,
@ -242,6 +249,13 @@ export interface ComponentFactory {
queries?: {[key: string]: any},
viewBindings?: any[],
changeDetection?: ChangeDetectionStrategy,
templateUrl?: string,
template?: string,
styleUrls?: string[],
styles?: string[],
directives?: Array<Type | any[]>,
pipes?: Array<Type | any[]>,
encapsulation?: ViewEncapsulation
}): ComponentMetadata;
}