import { Component , Input , Output , EventEmitter } from '@angular/core' ; @ Component ( { selector : 'select-chart-type' , templateUrl : './select-chart-type.component.html' } ) export class SelectChartTypeComponent { @ Input ( ) public data ? : any [ ] ; @ Input ( ) public chartName ? : string ; @ Output ( ) public valueChange = new EventEmitter < string > ( ) ; public onChange ( chartName ) { this . valueChange . emit ( chartName ) ; } }