This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function GetDataSourceVersionCtrl(Events, toastr, $scope, DataSource) { | |
// 'ngInject'; | |
// this works but hard codes the data source id | |
this.getDataSourceVersion = DataSource.version({ id: 6 }); | |
// this doesn't event lint (unexpected block) for some reason but also doesn't work | |
this.getDSV = (variable) => { | |
return DataSource.version({ id: variable}); | |
}; |