angular-d3-graph
Version:
Component for rendering a line graph or bar graph.
19 lines (17 loc) • 514 B
text/typescript
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { GraphComponent } from './src/app/graph/graph/graph.component';
import { GraphService } from './src/app/graph/graph.service';
({
imports: [ CommonModule ],
exports: [ GraphComponent ],
declarations: [ GraphComponent ]
})
export class GraphModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: GraphModule,
providers: [ GraphService ]
};
}
}