{"action":"created","issue":{"url":"https://api.github.com/repos/mantisg/Hello-World/issues/3","repository_url":"https://api.github.com/repos/mantisg/Hello-World","labels_url":"https://api.github.com/repos/mantisg/Hello-World/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/mantisg/Hello-World/issues/3/comments","events_url":"https://api.github.com/repos/mantisg/Hello-World/issues/3/events","html_url":"https://github.com/mantisg/Hello-World/issues/3","id":135168713,"number":3,"title":"Add History Functionality","user":{"login":"Zoso7728","id":8783345,"avatar_url":"https://avatars.githubusercontent.com/u/8783345?v=3","gravatar_id":"","url":"https://api.github.com/users/Zoso7728","html_url":"https://github.com/Zoso7728","followers_url":"https://api.github.com/users/Zoso7728/followers","following_url":"https://api.github.com/users/Zoso7728/following{/other_user}","gists_url":"https://api.github.com/users/Zoso7728/gists{/gist_id}","starred_url":"https://api.github.com/users/Zoso7728/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zoso7728/subscriptions","organizations_url":"https://api.github.com/users/Zoso7728/orgs","repos_url":"https://api.github.com/users/Zoso7728/repos","events_url":"https://api.github.com/users/Zoso7728/events{/privacy}","received_events_url":"https://api.github.com/users/Zoso7728/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mantisg/Hello-World/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-21T06:32:24Z","updated_at":"2016-02-22T06:32:56Z","closed_at":null,"body":"After each roll, store the results of the roll into an array and display that array into a \"History\" section.\r\n\r\nAn added feature to this would be the ability to clear the history by clicking a button. To do this I will call a function on the click event that will set the array that is populating the \"History\" section to nothing."},"comment":{"url":"https://api.github.com/repos/mantisg/Hello-World/issues/comments/187035060","html_url":"https://github.com/mantisg/Hello-World/issues/3#issuecomment-187035060","issue_url":"https://api.github.com/repos/mantisg/Hello-World/issues/3","id":187035060,"user":{"login":"Zoso7728","id":8783345,"avatar_url":"https://avatars.githubusercontent.com/u/8783345?v=3","gravatar_id":"","url":"https://api.github.com/users/Zoso7728","html_url":"https://github.com/Zoso7728","followers_url":"https://api.github.com/users/Zoso7728/followers","following_url":"https://api.github.com/users/Zoso7728/following{/other_user}","gists_url":"https://api.github.com/users/Zoso7728/gists{/gist_id}","starred_url":"https://api.github.com/users/Zoso7728/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zoso7728/subscriptions","organizations_url":"https://api.github.com/users/Zoso7728/orgs","repos_url":"https://api.github.com/users/Zoso7728/repos","events_url":"https://api.github.com/users/Zoso7728/events{/privacy}","received_events_url":"https://api.github.com/users/Zoso7728/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T06:32:56Z","updated_at":"2016-02-22T06:32:56Z","body":"I have written the code that clears the history section. Here is the function:\r\n\r\n$scope.clearHistory = function() {\r\n    $scope.total = [];  \r\n};"}}