fix(NgPlural): expression inside cases (#9883)

fixes #9868
This commit is contained in:
Victor Berchet
2016-07-07 14:47:06 -07:00
committed by GitHub
parent 72544ba551
commit b7e69bc1a1
3 changed files with 42 additions and 28 deletions

View File

@ -437,17 +437,16 @@ export declare class NgModel extends NgControl implements OnChanges {
}
/** @experimental */
export declare class NgPlural implements AfterContentInit {
cases: QueryList<NgPluralCase>;
export declare class NgPlural {
ngPlural: number;
constructor(_localization: NgLocalization);
ngAfterContentInit(): void;
addCase(value: string, switchView: SwitchView): void;
}
/** @experimental */
export declare class NgPluralCase {
value: string;
constructor(value: string, template: TemplateRef<Object>, viewContainer: ViewContainerRef);
constructor(value: string, template: TemplateRef<Object>, viewContainer: ViewContainerRef, ngPlural: NgPlural);
}
/** @experimental */