2016-08-12 16:52:55 -07:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import {NgModule} from '@angular/core';
|
2017-08-17 11:40:46 +02:00
|
|
|
import {COMMON_DIRECTIVES} from './directives/index';
|
2017-09-11 11:34:30 +02:00
|
|
|
import {DEPRECATED_PLURAL_FN, NgLocaleLocalization, NgLocalization, getPluralCase} from './i18n/localization';
|
2017-08-22 20:30:59 +02:00
|
|
|
import {COMMON_DEPRECATED_I18N_PIPES} from './pipes/deprecated/index';
|
2016-09-09 12:05:06 -07:00
|
|
|
import {COMMON_PIPES} from './pipes/index';
|
2016-08-12 16:52:55 -07:00
|
|
|
|
2017-01-25 13:45:06 -08:00
|
|
|
|
2016-08-12 16:52:55 -07:00
|
|
|
// Note: This does not contain the location providers,
|
|
|
|
|
// as they need some platform specific implementations to work.
|
|
|
|
|
/**
|
2017-01-25 13:45:06 -08:00
|
|
|
* The module that includes all the basic Angular directives like {@link NgIf}, {@link NgForOf}, ...
|
2016-08-12 16:52:55 -07:00
|
|
|
*
|
2018-04-05 22:31:44 +01:00
|
|
|
*
|
2016-08-12 16:52:55 -07:00
|
|
|
*/
|
|
|
|
|
@NgModule({
|
|
|
|
|
declarations: [COMMON_DIRECTIVES, COMMON_PIPES],
|
|
|
|
|
exports: [COMMON_DIRECTIVES, COMMON_PIPES],
|
|
|
|
|
providers: [
|
|
|
|
|
{provide: NgLocalization, useClass: NgLocaleLocalization},
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
export class CommonModule {
|
|
|
|
|
}
|
2017-08-16 21:01:59 +02:00
|
|
|
|
|
|
|
|
/**
|
2017-08-22 20:30:59 +02:00
|
|
|
* A module that contains the deprecated i18n pipes.
|
2017-08-16 21:01:59 +02:00
|
|
|
*
|
|
|
|
|
* @deprecated from v5
|
|
|
|
|
*/
|
2017-08-31 02:38:39 +02:00
|
|
|
@NgModule({
|
|
|
|
|
declarations: [COMMON_DEPRECATED_I18N_PIPES],
|
|
|
|
|
exports: [COMMON_DEPRECATED_I18N_PIPES],
|
2017-09-11 11:34:30 +02:00
|
|
|
providers: [{provide: DEPRECATED_PLURAL_FN, useValue: getPluralCase}],
|
2017-08-31 02:38:39 +02:00
|
|
|
})
|
2017-08-16 21:01:59 +02:00
|
|
|
export class DeprecatedI18NPipesModule {
|
|
|
|
|
}
|