2016-08-12 19:52:55 -04: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';
|
|
|
|
|
2016-09-09 15:05:06 -04:00
|
|
|
import {COMMON_DIRECTIVES} from './directives/index';
|
2016-08-12 19:52:55 -04:00
|
|
|
import {NgLocaleLocalization, NgLocalization} from './localization';
|
2016-09-09 15:05:06 -04:00
|
|
|
import {COMMON_PIPES} from './pipes/index';
|
2016-08-12 19:52:55 -04:00
|
|
|
|
|
|
|
// Note: This does not contain the location providers,
|
|
|
|
// as they need some platform specific implementations to work.
|
|
|
|
/**
|
2016-09-05 09:37:21 -04:00
|
|
|
* The module that includes all the basic Angular directives like {@link NgIf}, {@link NgFor}, ...
|
2016-08-12 19:52:55 -04:00
|
|
|
*
|
2016-08-23 16:58:41 -04:00
|
|
|
* @stable
|
2016-08-12 19:52:55 -04:00
|
|
|
*/
|
|
|
|
@NgModule({
|
|
|
|
declarations: [COMMON_DIRECTIVES, COMMON_PIPES],
|
|
|
|
exports: [COMMON_DIRECTIVES, COMMON_PIPES],
|
|
|
|
providers: [
|
|
|
|
{provide: NgLocalization, useClass: NgLocaleLocalization},
|
|
|
|
],
|
|
|
|
})
|
|
|
|
export class CommonModule {
|
|
|
|
}
|