File tree 4 files changed +26
-11
lines changed
4 files changed +26
-11
lines changed Original file line number Diff line number Diff line change
1
+ import { NgModule } from '@angular/core' ;
2
+ import { CommonModule } from '@angular/common' ;
3
+
4
+ import { PlotlyService } from './plotly.service' ;
5
+ import { PlotlyComponent } from './plotly.component' ;
6
+
7
+
8
+ @NgModule ( {
9
+ declarations : [ PlotlyComponent ] ,
10
+ imports : [ CommonModule ] ,
11
+ providers : [ PlotlyService ] ,
12
+ exports : [ PlotlyComponent ] ,
13
+ } )
14
+ export class PlotlySharedModule {
15
+ constructor ( ) { }
16
+ }
Original file line number Diff line number Diff line change @@ -2,17 +2,17 @@ import { NgModule } from '@angular/core';
2
2
import { CommonModule } from '@angular/common' ;
3
3
4
4
import { PlotlyService } from './plotly.service' ;
5
- import { PlotlyModule } from './plotly.module' ;
5
+ import { PlotlySharedModule } from './plotly-shared .module' ;
6
6
7
7
8
8
export type PlotlyBundleName = 'basic' | 'cartesian' | 'geo' | 'gl3d' | 'gl2d' | 'mapbox' | 'finance' ;
9
9
10
10
11
11
@NgModule ( {
12
12
declarations : [ ] ,
13
- imports : [ CommonModule , PlotlyModule ] ,
13
+ imports : [ CommonModule , PlotlySharedModule ] ,
14
14
providers : [ PlotlyService ] ,
15
- exports : [ PlotlyModule ] ,
15
+ exports : [ PlotlySharedModule ] ,
16
16
} )
17
17
export class PlotlyViaCDNModule {
18
18
private static plotlyBundle ?: string = null ;
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ import { NgModule } from '@angular/core';
2
2
import { CommonModule } from '@angular/common' ;
3
3
4
4
import { PlotlyService } from './plotly.service' ;
5
- import { PlotlyModule } from './plotly.module' ;
5
+ import { PlotlySharedModule } from './plotly-shared .module' ;
6
6
7
7
8
8
@NgModule ( {
9
9
declarations : [ ] ,
10
- imports : [ CommonModule , PlotlyModule ] ,
10
+ imports : [ CommonModule , PlotlySharedModule ] ,
11
11
providers : [ PlotlyService ] ,
12
- exports : [ PlotlyModule ] ,
12
+ exports : [ PlotlySharedModule ] ,
13
13
} )
14
14
export class PlotlyViaWindowModule {
15
15
constructor ( ) {
Original file line number Diff line number Diff line change 1
1
import { NgModule } from '@angular/core' ;
2
2
import { CommonModule } from '@angular/common' ;
3
3
4
- import { PlotlyComponent } from './plotly.component' ;
5
4
import { PlotlyService } from './plotly.service' ;
5
+ import { PlotlySharedModule } from './plotly-shared.module'
6
6
7
7
8
8
9
9
@NgModule ( {
10
- declarations : [ PlotlyComponent ] ,
11
- imports : [ CommonModule ] ,
10
+ declarations : [ ] ,
11
+ imports : [ CommonModule , PlotlySharedModule ] ,
12
12
providers : [ PlotlyService ] ,
13
- exports : [ PlotlyComponent ] ,
13
+ exports : [ PlotlySharedModule ] ,
14
14
} )
15
15
export class PlotlyModule {
16
16
public static plotlyjs : any = { } ;
17
- private plotlyModuleName = 'PlotlyModule' ;
18
17
19
18
constructor ( ) {
20
19
if ( ! this . isValid ( ) ) {
You can’t perform that action at this time.
0 commit comments