fix(common): NgSwitch
- don’t create the default case if another case matches (#12726)
This also simplifies the implementation of `NgSwitch`. Closes #11297 Closes #9420
This commit is contained in:
5
tools/public_api_guard/common/index.d.ts
vendored
5
tools/public_api_guard/common/index.d.ts
vendored
@ -166,14 +166,15 @@ export declare class NgSwitch {
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class NgSwitchCase {
|
||||
export declare class NgSwitchCase implements DoCheck {
|
||||
ngSwitchCase: any;
|
||||
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
|
||||
ngDoCheck(): void;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class NgSwitchDefault {
|
||||
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, sswitch: NgSwitch);
|
||||
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
|
Reference in New Issue
Block a user