I am building a small widget using angular that takes Google sheet Ids given by user and publishes the output in nice json format. The problem is that my code does nothing.
Could be that there were 2 return statements in the service? Statement moved:
angular .module('adf.widget.charts') .service('chartService', chartService); function chartService(){ return { getUrl: function(key) { var googleSheetkey = key; return googleSheetkey; } }; }