W3cubDocs

/Angular 4 TypeScript

CommonModule

Stable Class

Class Overview

class CommonModule {
}

Class Description

The module that includes all the basic Angular directives like NgIf, NgForOf, ...

Annotations

@NgModule({
  declarations: [COMMON_DIRECTIVES, COMMON_PIPES],
  exports: [COMMON_DIRECTIVES, COMMON_PIPES],
  providers: [
    {provide: NgLocalization, useClass: NgLocaleLocalization},
  ],
})

exported from common/index, defined in common/src/common_module.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/docs/ts/latest/api/common/index/CommonModule-class.html