Skip to content

Commit

Permalink
Changed files structure and made more NPM friedndly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacper Madej committed May 31, 2017
1 parent 49874b3 commit 20a949d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions index.js
@@ -0,0 +1 @@
module.exports = require('./src/app/highcharts-chart.component.ts')
1 change: 1 addition & 0 deletions package.json
@@ -1,6 +1,7 @@
{
"name": "highcharts-angular",
"version": "0.1.0",
"main": "index.js",
"description": "Highcharts component for Angular.",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/app/app.module.ts
Expand Up @@ -4,12 +4,12 @@ import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';

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

@NgModule({
declarations: [
AppComponent,
ChartComponent
HighchartsChartComponent
],
imports: [
BrowserModule,
Expand Down
Expand Up @@ -5,7 +5,7 @@ import { Component, ElementRef, EventEmitter, Input, Output } from '@angular/cor
template: ''
})

export class ChartComponent {
export class HighchartsChartComponent {
constructor(private el: ElementRef) { };

chart: any;
Expand Down

0 comments on commit 20a949d

Please sign in to comment.