mempool/frontend/src/app/shared/shared.module.ts
2019-11-06 15:35:02 +08:00

42 lines
1019 B
TypeScript

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgbButtonsModule, NgbModalModule } from '@ng-bootstrap/ng-bootstrap';
import { BytesPipe } from './pipes/bytes-pipe/bytes.pipe';
import { VbytesPipe } from './pipes/bytes-pipe/vbytes.pipe';
import { RoundPipe } from './pipes/math-round-pipe/math-round.pipe';
import { CeilPipe } from './pipes/math-ceil/math-ceil.pipe';
import { ChartistComponent } from '../statistics/chartist.component';
import { TimeSincePipe } from './pipes/time-since/time-since.pipe';
@NgModule({
imports: [
CommonModule,
NgbButtonsModule,
NgbModalModule,
],
declarations: [
ChartistComponent,
RoundPipe,
CeilPipe,
BytesPipe,
VbytesPipe,
TimeSincePipe,
],
exports: [
RoundPipe,
CeilPipe,
BytesPipe,
VbytesPipe,
TimeSincePipe,
NgbButtonsModule,
NgbModalModule,
ChartistComponent,
],
providers: [
BytesPipe,
VbytesPipe,
]
})
export class SharedModule { }