Added instantiated version of chart definition and cleaned up tests.

This commit is contained in:
Scott Hatcher
2015-08-25 16:02:15 -07:00
parent 1613bfdbda
commit 29f7e2fe49
2 changed files with 8 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ class AppController {
loading: true
};
constructor($timeout: ng.ITimeoutService) {
let vm = this;
var vm = this;
$timeout(function() {
//Some async action
vm.chartConfig.loading = false;

View File

@@ -33,5 +33,11 @@ interface HighChartsNGConfig {
height?: number;
};
//function (optional) - setup some logic for the chart
func?: (chart) => void;
func?: (chart: HighchartsChartObject) => void;
}
//Instantiated Chart
interface HighChartsNGChart extends HighChartsNGConfig {
//This is a simple way to access all the Highcharts API that is not currently managed by this directive.
getHighcharts(): HighchartsChartObject;
}