2016-08-12 16:52:55 -07:00
|
|
|
/**
|
|
|
|
* @license
|
2020-05-19 12:08:49 -07:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2016-08-12 16:52:55 -07:00
|
|
|
*
|
|
|
|
* 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';
|
2019-10-11 09:30:19 +02:00
|
|
|
import {NgLocaleLocalization, NgLocalization} from './i18n/localization';
|
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.
|
|
|
|
/**
|
2018-08-22 08:52:19 -07:00
|
|
|
* Exports all the basic Angular directives and pipes,
|
|
|
|
* such as `NgIf`, `NgForOf`, `DecimalPipe`, and so on.
|
|
|
|
* Re-exported by `BrowserModule`, which is included automatically in the root
|
|
|
|
* `AppModule` when you create a new app with the CLI `new` command.
|
2016-08-12 16:52:55 -07:00
|
|
|
*
|
2018-08-22 08:52:19 -07:00
|
|
|
* * The `providers` options configure the NgModule's injector to provide
|
|
|
|
* localization dependencies to members.
|
|
|
|
* * The `exports` options make the declared directives and pipes available for import
|
|
|
|
* by other NgModules.
|
2018-04-05 22:31:44 +01:00
|
|
|
*
|
2018-10-19 15:06:08 +01:00
|
|
|
* @publicApi
|
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 {
|
|
|
|
}
|