@angular/common#CommonModule TypeScript Examples

The following examples show how to use @angular/common#CommonModule. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: dashboard.module.ts    From one-platform with MIT License 6 votes vote down vote up
@NgModule({
  declarations: [
    HomeComponent,
    PropertyCardComponent,
    AnalysisComponent,
    TimelineScoreFormaterPipe,
  ],
  providers: [TitleCasePipe],
  imports: [
    CommonModule,
    DashboardRoutingModule,
    GraphQLModule,
    FormsModule,
    HttpClientModule,
    SharedModule,
    NgxChartsModule,
  ],
})
export class DashboardModule {}
Example #2
Source File: loading-spinner.module.ts    From 1hop with MIT License 6 votes vote down vote up
@NgModule({
    declarations: [
        LoadingSpinnerComponent
    ],
    imports: [
        CommonModule
    ],
    exports: [
        LoadingSpinnerComponent
    ]
})
export class LoadingSpinnerModule {
}
Example #3
Source File: leverage.module.ts    From 1x.ag with MIT License 6 votes vote down vote up
@NgModule({
    declarations: [LeverageComponent, CreatePositionComponent, MyPositionsComponent, LeverageChartDialogComponent],
    imports: [
        CommonModule,
        LeverageRoutingModule,
        FormsModule,
        ButtonsModule,
        FontAwesomeModule,
        TooltipModule.forRoot(),
        OiUiModule,
        ReactiveFormsModule,
        LoadingSpinnerModule,
        NgbAlertModule,
        ChartsModule
    ],
    entryComponents: [
        LeverageChartDialogComponent
    ]
})
export class LeverageModule {
}
Example #4
Source File: components.module.ts    From Uber-ServeMe-System with MIT License 6 votes vote down vote up
@NgModule({
  declarations: [
    SlidesComponent,
    SpinnerComponent,
    VendorhomePopoverComponent,
  ],
  exports: [
    SlidesComponent,
    SpinnerComponent,
    VendorhomePopoverComponent,
    HidenavModule,
  ],
  imports: [
    CommonModule,
    IonicModule,
    HidenavModule,
  ]
})
export class ComponentsModule { }
Example #5
Source File: mobile.module.ts    From xBull-Wallet with GNU Affero General Public License v3.0 6 votes vote down vote up
@NgModule({
  declarations: [
    CloseScanComponent,
    IosBlockPageComponent,
  ],
  imports: [
    CommonModule,
    NzDrawerModule,
    NzButtonModule,
    NzCardModule,
    RouterModule,
  ],
  exports: [
    IosBlockPageComponent,
  ]
})
export class MobileModule {
  static forRoot(): ModuleWithProviders<MobileModule> {
    return {
      ngModule: MobileModule,
      providers: [
        QrScannerService,
        QRScanner,
        DeviceAuthService,
        AndroidFingerprintAuth,
        {
          provide: 'TouchID',
          useValue: TouchID,
        },
        {
          provide: 'Keychain',
          useValue: Keychain,
        },
      ],
    };
  }
}
Example #6
Source File: errors.module.ts    From rubic-app with GNU General Public License v3.0 6 votes vote down vote up
@NgModule({
  declarations: [
    UndefinedErrorComponent,
    NotSupportedNetworkErrorComponent,
    InsufficientFundsErrorComponent,
    MetamaskErrorComponent,
    NetworkErrorComponent,
    TotalSupplyOverflowErrorComponent,
    OverQueryLimitErrorComponent,
    MaxGasPriceOverflowErrorComponent,
    UnknownErrorComponent,
    InsufficientFundsCcrErrorComponent,
    InsufficientFundsOneinchErrorComponent,
    TokenWithFeeErrorComponent,
    UnsupportedTokenCCRComponent,
    RpcErrorComponent
  ],
  imports: [CommonModule, SharedModule, TranslateModule, InlineSVGModule, TuiManualHintModule],
  entryComponents: [
    UndefinedErrorComponent,
    NotSupportedNetworkErrorComponent,
    InsufficientFundsErrorComponent,
    MetamaskErrorComponent,
    NetworkErrorComponent,
    TotalSupplyOverflowErrorComponent,
    OverQueryLimitErrorComponent,
    UnknownErrorComponent,
    InsufficientFundsCcrErrorComponent
  ]
})
export class ErrorsModule {}
Example #7
Source File: shared.module.ts    From Angular-ActionStreams with MIT License 6 votes vote down vote up
@NgModule({
  imports: [
    CommonModule
  ],
  declarations: [
    StarComponent
  ],
  exports: [
    StarComponent,
    CommonModule,
    FormsModule
  ]
})
export class SharedModule { }
Example #8
Source File: core.module.ts    From ng-devui-admin with MIT License 6 votes vote down vote up
@NgModule({
  declarations: [],
  imports: [CommonModule],
})
export class CoreModule {
  constructor(@Optional() @SkipSelf() parentModule: CoreModule) {
    throwIfAlreadyLoaded(parentModule, 'CoreModule');
  }

  static forRoot(): ModuleWithProviders<CoreModule> {
    return {
      ngModule: CoreModule,
      providers: [...DEVUI_CORE_PROVIDERS],
    };
  }
}
Example #9
Source File: app.module.ts    From angular-electron-admin with Apache License 2.0 6 votes vote down vote up
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    CommonModule,
    HttpClientModule,
    BrowserAnimationsModule,
    AppRoutingModule
  ],
  providers: [
    {
      provide: LocationStrategy,
      useClass: HashLocationStrategy
    }
  ],
  bootstrap: [AppComponent]
})
export class AppModule {
}