CommonModule

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

该模块包含了所有基本的 Angular 指令,如 NgIfNgForOf等……

class CommonModule { }

注解

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