feat(common): add an empty DeprecatedI18NPipesModule module (#18737)
Adding an empty module to ease the migration to the i18n pipes. PR Close #18737
This commit is contained in:
parent
3a500981ef
commit
83713ddea4
|
@ -14,7 +14,7 @@
|
||||||
export * from './location/index';
|
export * from './location/index';
|
||||||
export {NgLocaleLocalization, NgLocalization} from './localization';
|
export {NgLocaleLocalization, NgLocalization} from './localization';
|
||||||
export {parseCookieValue as ɵparseCookieValue} from './cookie';
|
export {parseCookieValue as ɵparseCookieValue} from './cookie';
|
||||||
export {CommonModule} from './common_module';
|
export {CommonModule, DeprecatedI18NPipesModule} from './common_module';
|
||||||
export {NgClass, NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NgComponentOutlet} from './directives/index';
|
export {NgClass, NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NgComponentOutlet} from './directives/index';
|
||||||
export {DOCUMENT} from './dom_tokens';
|
export {DOCUMENT} from './dom_tokens';
|
||||||
export {AsyncPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, JsonPipe, LowerCasePipe, CurrencyPipe, DecimalPipe, PercentPipe, SlicePipe, UpperCasePipe, TitleCasePipe} from './pipes/index';
|
export {AsyncPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, JsonPipe, LowerCasePipe, CurrencyPipe, DecimalPipe, PercentPipe, SlicePipe, UpperCasePipe, TitleCasePipe} from './pipes/index';
|
||||||
|
|
|
@ -29,3 +29,19 @@ import {COMMON_PIPES} from './pipes/index';
|
||||||
})
|
})
|
||||||
export class CommonModule {
|
export class CommonModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* I18N pipes are being changed to move away from using the JS Intl API.
|
||||||
|
*
|
||||||
|
* The former pipes relying on the Intl API will be moved to this module while the `CommonModule`
|
||||||
|
* will contain the new pipes that do not rely on Intl.
|
||||||
|
*
|
||||||
|
* As a first step this module is created empty to ease the migration.
|
||||||
|
*
|
||||||
|
* see https://github.com/angular/angular/pull/18284
|
||||||
|
*
|
||||||
|
* @deprecated from v5
|
||||||
|
*/
|
||||||
|
@NgModule({declarations: [], exports: []})
|
||||||
|
export class DeprecatedI18NPipesModule {
|
||||||
|
}
|
||||||
|
|
|
@ -33,6 +33,10 @@ export declare class DecimalPipe implements PipeTransform {
|
||||||
transform(value: any, digits?: string): string | null;
|
transform(value: any, digits?: string): string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
|
export declare class DeprecatedI18NPipesModule {
|
||||||
|
}
|
||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare const DOCUMENT: InjectionToken<Document>;
|
export declare const DOCUMENT: InjectionToken<Document>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue