mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Added instantiated version of chart definition and cleaned up tests.
This commit is contained in:
@@ -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;
|
||||
|
||||
Vendored
+7
-1
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user