2016-08-12 23:52:55 +00:00
|
|
|
/**
|
|
|
|
|
* @license
|
2020-05-19 19:08:49 +00:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2016-08-12 23:52:55 +00: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 09:40:46 +00:00
|
|
|
import {COMMON_DIRECTIVES} from './directives/index';
|
2019-10-11 07:30:19 +00:00
|
|
|
import {NgLocaleLocalization, NgLocalization} from './i18n/localization';
|
2016-09-09 19:05:06 +00:00
|
|
|
import {COMMON_PIPES} from './pipes/index';
|
2016-08-12 23:52:55 +00:00
|
|
|
|
2017-01-25 21:45:06 +00:00
|
|
|
|
2016-08-12 23:52:55 +00:00
|
|
|
// Note: This does not contain the location providers,
|
|
|
|
|
// as they need some platform specific implementations to work.
|
|
|
|
|
/**
|
2018-08-22 15:52:19 +00: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 23:52:55 +00:00
|
|
|
*
|
2018-08-22 15:52:19 +00: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 21:31:44 +00:00
|
|
|
*
|
2018-10-19 14:06:08 +00:00
|
|
|
* @publicApi
|
2016-08-12 23:52:55 +00:00
|
|
|
*/
|
|
|
|
|
@NgModule({
|
|
|
|
|
declarations: [COMMON_DIRECTIVES, COMMON_PIPES],
|
|
|
|
|
exports: [COMMON_DIRECTIVES, COMMON_PIPES],
|
|
|
|
|
providers: [
|
|
|
|
|
{provide: NgLocalization, useClass: NgLocaleLocalization},
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
export class CommonModule {
|
|
|
|
|
}
|