1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | import { NgModule } from '@angular/core';
|
---|
9 | import { COMMON_DIRECTIVES } from './directives/index';
|
---|
10 | import { NgLocaleLocalization, NgLocalization } from './i18n/localization';
|
---|
11 | import { COMMON_PIPES } from './pipes/index';
|
---|
12 | // Note: This does not contain the location providers,
|
---|
13 | // as they need some platform specific implementations to work.
|
---|
14 | /**
|
---|
15 | * Exports all the basic Angular directives and pipes,
|
---|
16 | * such as `NgIf`, `NgForOf`, `DecimalPipe`, and so on.
|
---|
17 | * Re-exported by `BrowserModule`, which is included automatically in the root
|
---|
18 | * `AppModule` when you create a new app with the CLI `new` command.
|
---|
19 | *
|
---|
20 | * * The `providers` options configure the NgModule's injector to provide
|
---|
21 | * localization dependencies to members.
|
---|
22 | * * The `exports` options make the declared directives and pipes available for import
|
---|
23 | * by other NgModules.
|
---|
24 | *
|
---|
25 | * @publicApi
|
---|
26 | */
|
---|
27 | export class CommonModule {
|
---|
28 | }
|
---|
29 | CommonModule.decorators = [
|
---|
30 | { type: NgModule, args: [{
|
---|
31 | declarations: [COMMON_DIRECTIVES, COMMON_PIPES],
|
---|
32 | exports: [COMMON_DIRECTIVES, COMMON_PIPES],
|
---|
33 | providers: [
|
---|
34 | { provide: NgLocalization, useClass: NgLocaleLocalization },
|
---|
35 | ],
|
---|
36 | },] }
|
---|
37 | ];
|
---|
38 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uX21vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbW1vbi9zcmMvY29tbW9uX21vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQ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