[Code Review] Updates based on code review by @VWoeltjen

Set export functions on the ExportImageService prototype. Insantiated
ExportImageService in the PlotController for better dependcy injection.
This commit is contained in:
David Hudson
2016-09-02 11:54:38 +09:00
parent 3a19890be9
commit e370271093
3 changed files with 13 additions and 24 deletions

View File

@@ -22,17 +22,17 @@
<span ng-controller="PlotController as plot"
class="abs holder holder-plot">
<a class="s-button t-export icon-download labeled"
ng-click="exportPDF()"
ng-click="plot.exportPDF()"
title="Export This View's Data">
Export as PDF
</a>
<a class="s-button t-export icon-download labeled"
ng-click="exportPNG()"
ng-click="plot.exportPNG()"
title="Export This View's Data">
Export as PNG
</a>
<a class="s-button t-export icon-download labeled"
ng-click="exportJPG()"
ng-click="plot.exportJPG()"
title="Export This View's Data">
Export as JPG
</a>