{"action":"created","issue":{"url":"https://api.github.com/repos/asafdav/ng-csv/issues/55","repository_url":"https://api.github.com/repos/asafdav/ng-csv","labels_url":"https://api.github.com/repos/asafdav/ng-csv/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/asafdav/ng-csv/issues/55/comments","events_url":"https://api.github.com/repos/asafdav/ng-csv/issues/55/events","html_url":"https://github.com/asafdav/ng-csv/issues/55","id":42800659,"number":55,"title":"CSV from controller - how to specify file?","user":{"login":"axewelder","id":8627761,"avatar_url":"https://avatars2.githubusercontent.com/u/8627761?v=3","gravatar_id":"","url":"https://api.github.com/users/axewelder","html_url":"https://github.com/axewelder","followers_url":"https://api.github.com/users/axewelder/followers","following_url":"https://api.github.com/users/axewelder/following{/other_user}","gists_url":"https://api.github.com/users/axewelder/gists{/gist_id}","starred_url":"https://api.github.com/users/axewelder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axewelder/subscriptions","organizations_url":"https://api.github.com/users/axewelder/orgs","repos_url":"https://api.github.com/users/axewelder/repos","events_url":"https://api.github.com/users/axewelder/events{/privacy}","received_events_url":"https://api.github.com/users/axewelder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2014-09-15T18:00:55Z","updated_at":"2017-03-27T22:57:01Z","closed_at":"2014-09-15T21:52:18Z","body":"I see in issue  Exporting from controller #35 (closed), how to drive the action from the controller:\n\nI use the example code show in the issue:\n\n//inject CSV service in your controller\n$scope.getArray = [{a: 1, b:2}, {a:3, b:4}];\n$scope.options = {};\n$scope.options.header = ['Field A', 'Field B'];\n\n$scope.send_email = function() {\n        CSV.stringify($scope.getArray, $scope.options).then(function(result){\n            console.log(result);\n        });\n}\n\nThe results look correct in the console, but I don't see how I pass in the desired file name and have the file created, like I do in the method from the HTML.\n"},"comment":{"url":"https://api.github.com/repos/asafdav/ng-csv/issues/comments/289610631","html_url":"https://github.com/asafdav/ng-csv/issues/55#issuecomment-289610631","issue_url":"https://api.github.com/repos/asafdav/ng-csv/issues/55","id":289610631,"user":{"login":"ibrychgo","id":6002321,"avatar_url":"https://avatars0.githubusercontent.com/u/6002321?v=3","gravatar_id":"","url":"https://api.github.com/users/ibrychgo","html_url":"https://github.com/ibrychgo","followers_url":"https://api.github.com/users/ibrychgo/followers","following_url":"https://api.github.com/users/ibrychgo/following{/other_user}","gists_url":"https://api.github.com/users/ibrychgo/gists{/gist_id}","starred_url":"https://api.github.com/users/ibrychgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibrychgo/subscriptions","organizations_url":"https://api.github.com/users/ibrychgo/orgs","repos_url":"https://api.github.com/users/ibrychgo/repos","events_url":"https://api.github.com/users/ibrychgo/events{/privacy}","received_events_url":"https://api.github.com/users/ibrychgo/received_events","type":"User","site_admin":false},"created_at":"2017-03-27T22:57:01Z","updated_at":"2017-03-27T22:57:01Z","body":"Thank you taking the time to post this. I don't have it working all the way...but you probably saved me HOURS getting to this point. :)"}}
{"actor":{"display_login":"ibrychgo"}}