Skip to content

Instantly share code, notes, and snippets.

View raj23manj's full-sized avatar
😎
"I never lose... either I win or I learn."

raj23manj

😎
"I never lose... either I win or I learn."
View GitHub Profile
@fabiobiondi
fabiobiondi / 1. highcharts.component.ts
Last active May 17, 2018 16:00
Simple HighChart component in Angular 5
import { AfterViewInit, Component, ElementRef, Input, OnChanges, SimpleChanges, ViewChild } from '@angular/core';
import { HighChartService } from './highchart.service';
@Component({
selector: 'fb-highchart',
template: '<div *ngIf="config"></div>',
providers: [HighChartService]
})
export class HighChartComponent implements OnChanges, AfterViewInit {
@Input() config: any;