Skip to content

Commit 2eeb0c1

Browse files
committed
Removing the plotly-shared.module
1 parent e7507bc commit 2eeb0c1

File tree

5 files changed

+9
-23
lines changed

5 files changed

+9
-23
lines changed

projects/demo_app/src/app/app.module.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
import { NgModule } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
3+
import * as PlotlyJS from 'plotly.js-dist';
4+
import { PlotlyModule } from 'angular-plotly.js';
35

46

57

68
import { AppComponent } from './app.component';
79

10+
PlotlyModule.plotlyjs = PlotlyJS;
11+
812
@NgModule({
913
declarations: [
1014
AppComponent
1115
],
1216
imports: [
1317
BrowserModule,
18+
PlotlyModule,
1419
],
1520
providers: [],
1621
bootstrap: [AppComponent]

projects/demo_app/src/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<title>DemoApp</title>
66
<base href="/">
77
<meta name="viewport" content="width=device-width, initial-scale=1">
8-
<script src="https://cdn.plot.ly/plotly-3.0.1.min.js"></script>
98
<link rel="icon" type="image/x-icon" href="favicon.ico">
109
</head>
1110
<body>

projects/plotly/src/lib/plotly-shared.module.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

projects/plotly/src/lib/plotly.module.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
import { NgModule } from '@angular/core';
2-
import { CommonModule } from '@angular/common';
32

43
import { PlotlyService } from './plotly.service';
5-
import { PlotlySharedModule } from './plotly-shared.module';
4+
import { PlotlyComponent } from './plotly.component';
65

76

87

98
@NgModule({
10-
declarations: [],
11-
imports: [CommonModule, PlotlySharedModule],
12-
providers: [PlotlyService],
13-
exports: [PlotlySharedModule],
9+
imports: [PlotlyComponent],
10+
providers: [PlotlyService],
11+
exports: [PlotlyComponent],
1412
})
1513
export class PlotlyModule {
1614
public static plotlyjs: any = {};

projects/plotly/src/public-api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44

55
export * from './lib/plotly.module';
6-
export * from './lib/plotly-shared.module';
76

87
export * from './lib/plotly.service';
98
export * from './lib/plotly.component';

0 commit comments

Comments
 (0)