Hi ,
I have the following example code in my app:
Now i have Angular controller like this :
angular.module('WidgetsApp').controller('Widgetscontroller', function ($scope, factory) {
$scope.getData = function () {
$scope.d = {};
var txt = $scope.d.txt_chart;
var res = factory.getData(txt);
});
})();


Nilesh PatilRank #1,129 · 1.6K reputationPosted Nov 7, 2017, 1:24 AM EST