feat(core): add syntax sugar to make @View optional
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user