angular-google-chart
Version:
Google Chart Tools AngularJS Directive Module
22 lines (18 loc) • 553 B
JavaScript
/* global angular */
(function(){
angular.module('googlechart')
.provider('googleJsapiUrl', googleJsapiUrlProvider);
function googleJsapiUrlProvider() {
var protocol = 'https:';
var url = '//www.google.com/jsapi';
this.setProtocol = function (newProtocol) {
protocol = newProtocol;
};
this.setUrl = function (newUrl) {
url = newUrl;
};
this.$get = function () {
return (protocol ? protocol : '') + url;
};
}
})();