Skip to content

Commit 20a949d

Browse files
committed
Changed files structure and made more NPM friedndly.
1 parent 49874b3 commit 20a949d

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('./src/app/highcharts-chart.component.ts')

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "highcharts-angular",
33
"version": "0.1.0",
4+
"main": "index.js",
45
"description": "Highcharts component for Angular.",
56
"repository": {
67
"type": "git",

src/app/app.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import { FormsModule } from '@angular/forms';
44
import { HttpModule } from '@angular/http';
55

66
import { AppComponent } from './app.component';
7-
import { ChartComponent } from './chart/chart.component';
7+
import { HighchartsChartComponent } from './highcharts-chart.component';
88

99
@NgModule({
1010
declarations: [
1111
AppComponent,
12-
ChartComponent
12+
HighchartsChartComponent
1313
],
1414
imports: [
1515
BrowserModule,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Component, ElementRef, EventEmitter, Input, Output } from '@angular/cor
55
template: ''
66
})
77

8-
export class ChartComponent {
8+
export class HighchartsChartComponent {
99
constructor(private el: ElementRef) { };
1010

1111
chart: any;

0 commit comments

Comments
 (0)