{"action":"created","comment":{"url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/pulls/comments/44940907","id":44940907,"diff_hunk":"@@ -0,0 +1,78 @@\n+var app= angular.module('angulapp', []);\n+\n+\n+app.controller('moviesCtrl', function($scope, movieService) {\n+\t$scope.movies= movies;\n+\t$scope.selected= $scope.movies[0];\n+\t$scope.hide= false;\n+\t$scope.hide2= true;\n+\t$scope.hide3= true;\n+\t\n+\t$scope.clicked= function(id){\n+\t\t$scope.selected= $scope.movies[id];\n+\t\t$scope.hide=true;\n+\t\t$scope.hide2=false;\n+\t};\n+\t$scope.back= function(){\n+\t\t$scope.hide= false;\n+\t\t$scope.hide2= true;\n+\t\t$scope.hide3= true;\n+\t};\n+\t$scope.edit= function(id){\n+\t\t$scope.hide3= false;\n+\t\t$scope.newmovie = angular.copy(movieService.get(id));\n+\t};\n+\t$scope.save = function(){\n+\t\tmovieService.save($scope.newmovie);\n+\t\t$scope.newmovie={};\n+\t\t$scope.back();\n+\n+\t};\n+\t$scope.new= function() {\n+\t\t$scope.hide= true;\n+\t\t$scope.hide2= true;\n+\t\t$scope.hide3= false;\n+\t};\n+\t$scope.delete = function(id){\n+\t\tmovieService.delete(id);\n+\t\t$scope.newmovie={};\n+\t\t$scope.back();\n+\n+\t};\n+\n+\t\n+});\n+\n+app.service(\"movieService\", function(){\n+\tvar uid=5;\n+\t\n+\tthis.save= function (movie) {\n+\t\tif(movie.id==null){\n+\t\t\tmovie.id=uid++;\n+\t\t\tmovies.push(movie);\n+\t\t} else {\n+\t\t\tfor(i in movies) {\n+\t\t\t\tif(movies[i].id==movie.id){\n+\t\t\t\t\tmovies[i]= movie;\n+\t\t\t\t}\n+\t\t\t}\n+\t\t}\n+\t}\n+\n+\tthis.get = function(id) {\n+\t\tfor(i in movies){\n+\t\t\tif(movies[i].id==id){\n+\t\t\t\treturn movies[i];\n+\t\t\t}\n+\t\t}\n+\t}\n+\n+\tthis.delete= function(id) {\n+\t\tfor(i in movies){\n+\t\t\tif(movies[i].id=id){\n+\t\t\t\tmovies.splice(i+1, 1);\n+\t\t\t}\n+\t\t}\n+\t}","path":"06-AngularJS/app.js","position":76,"original_position":76,"commit_id":"18c3da6fc619a8d5e4aa3babbbf1735c99adbbcb","original_commit_id":"18c3da6fc619a8d5e4aa3babbbf1735c99adbbcb","user":{"login":"nicolasronsmansglobant","id":11197393,"avatar_url":"https://avatars.githubusercontent.com/u/11197393?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasronsmansglobant","html_url":"https://github.com/nicolasronsmansglobant","followers_url":"https://api.github.com/users/nicolasronsmansglobant/followers","following_url":"https://api.github.com/users/nicolasronsmansglobant/following{/other_user}","gists_url":"https://api.github.com/users/nicolasronsmansglobant/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasronsmansglobant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasronsmansglobant/subscriptions","organizations_url":"https://api.github.com/users/nicolasronsmansglobant/orgs","repos_url":"https://api.github.com/users/nicolasronsmansglobant/repos","events_url":"https://api.github.com/users/nicolasronsmansglobant/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasronsmansglobant/received_events","type":"User","site_admin":false},"body":"And here as well :)","created_at":"2015-11-16T15:59:52Z","updated_at":"2015-11-16T15:59:52Z","html_url":"https://github.com/santiagogarzon/bootcamp-ui/pull/6#discussion_r44940907","pull_request_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/pulls/comments/44940907"},"html":{"href":"https://github.com/santiagogarzon/bootcamp-ui/pull/6#discussion_r44940907"},"pull_request":{"href":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/pulls/6","id":50819107,"html_url":"https://github.com/santiagogarzon/bootcamp-ui/pull/6","diff_url":"https://github.com/santiagogarzon/bootcamp-ui/pull/6.diff","patch_url":"https://github.com/santiagogarzon/bootcamp-ui/pull/6.patch","issue_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/issues/6","number":6,"state":"open","locked":false,"title":"Topic6","user":{"login":"santiagogarzon","id":11463617,"avatar_url":"https://avatars.githubusercontent.com/u/11463617?v=3","gravatar_id":"","url":"https://api.github.com/users/santiagogarzon","html_url":"https://github.com/santiagogarzon","followers_url":"https://api.github.com/users/santiagogarzon/followers","following_url":"https://api.github.com/users/santiagogarzon/following{/other_user}","gists_url":"https://api.github.com/users/santiagogarzon/gists{/gist_id}","starred_url":"https://api.github.com/users/santiagogarzon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santiagogarzon/subscriptions","organizations_url":"https://api.github.com/users/santiagogarzon/orgs","repos_url":"https://api.github.com/users/santiagogarzon/repos","events_url":"https://api.github.com/users/santiagogarzon/events{/privacy}","received_events_url":"https://api.github.com/users/santiagogarzon/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-16T14:53:02Z","updated_at":"2015-11-16T15:59:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d2b4df538ceac893ac7c2a6a42b61507b5c0bf6f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/pulls/6/commits","review_comments_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/pulls/6/comments","review_comment_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/issues/6/comments","statuses_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/statuses/18c3da6fc619a8d5e4aa3babbbf1735c99adbbcb","head":{"label":"santiagogarzon:Topic6","ref":"Topic6","sha":"18c3da6fc619a8d5e4aa3babbbf1735c99adbbcb","user":{"login":"santiagogarzon","id":11463617,"avatar_url":"https://avatars.githubusercontent.com/u/11463617?v=3","gravatar_id":"","url":"https://api.github.com/users/santiagogarzon","html_url":"https://github.com/santiagogarzon","followers_url":"https://api.github.com/users/santiagogarzon/followers","following_url":"https://api.github.com/users/santiagogarzon/following{/other_user}","gists_url":"https://api.github.com/users/santiagogarzon/gists{/gist_id}","starred_url":"https://api.github.com/users/santiagogarzon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santiagogarzon/subscriptions","organizations_url":"https://api.github.com/users/santiagogarzon/orgs","repos_url":"https://api.github.com/users/santiagogarzon/repos","events_url":"https://api.github.com/users/santiagogarzon/events{/privacy}","received_events_url":"https://api.github.com/users/santiagogarzon/received_events","type":"User","site_admin":false},"repo":{"id":45017941,"name":"bootcamp-ui","full_name":"santiagogarzon/bootcamp-ui","owner":{"login":"santiagogarzon","id":11463617,"avatar_url":"https://avatars.githubusercontent.com/u/11463617?v=3","gravatar_id":"","url":"https://api.github.com/users/santiagogarzon","html_url":"https://github.com/santiagogarzon","followers_url":"https://api.github.com/users/santiagogarzon/followers","following_url":"https://api.github.com/users/santiagogarzon/following{/other_user}","gists_url":"https://api.github.com/users/santiagogarzon/gists{/gist_id}","starred_url":"https://api.github.com/users/santiagogarzon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santiagogarzon/subscriptions","organizations_url":"https://api.github.com/users/santiagogarzon/orgs","repos_url":"https://api.github.com/users/santiagogarzon/repos","events_url":"https://api.github.com/users/santiagogarzon/events{/privacy}","received_events_url":"https://api.github.com/users/santiagogarzon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/santiagogarzon/bootcamp-ui","description":"","fork":true,"url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui","forks_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/forks","keys_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/teams","hooks_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/hooks","issue_events_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/issues/events{/number}","events_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/events","assignees_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/assignees{/user}","branches_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/branches{/branch}","tags_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/tags","blobs_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/languages","stargazers_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/stargazers","contributors_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/contributors","subscribers_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/subscribers","subscription_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/subscription","commits_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/contents/{+path}","compare_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/merges","archive_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/downloads","issues_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/issues{/number}","pulls_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/labels{/name}","releases_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/releases{/id}","created_at":"2015-10-27T04:57:21Z","updated_at":"2015-10-29T18:03:54Z","pushed_at":"2015-11-16T14:53:02Z","git_url":"git://github.com/santiagogarzon/bootcamp-ui.git","ssh_url":"git@github.com:santiagogarzon/bootcamp-ui.git","clone_url":"https://github.com/santiagogarzon/bootcamp-ui.git","svn_url":"https://github.com/santiagogarzon/bootcamp-ui","homepage":null,"size":17172,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"santiagogarzon:master","ref":"master","sha":"61584704a1d403ecd2cb263ef0821b6e5934cd1b","user":{"login":"santiagogarzon","id":11463617,"avatar_url":"https://avatars.githubusercontent.com/u/11463617?v=3","gravatar_id":"","url":"https://api.github.com/users/santiagogarzon","html_url":"https://github.com/santiagogarzon","followers_url":"https://api.github.com/users/santiagogarzon/followers","following_url":"https://api.github.com/users/santiagogarzon/following{/other_user}","gists_url":"https://api.github.com/users/santiagogarzon/gists{/gist_id}","starred_url":"https://api.github.com/users/santiagogarzon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santiagogarzon/subscriptions","organizations_url":"https://api.github.com/users/santiagogarzon/orgs","repos_url":"https://api.github.com/users/santiagogarzon/repos","events_url":"https://api.github.com/users/santiagogarzon/events{/privacy}","received_events_url":"https://api.github.com/users/santiagogarzon/received_events","type":"User","site_admin":false},"repo":{"id":45017941,"name":"bootcamp-ui","full_name":"santiagogarzon/bootcamp-ui","owner":{"login":"santiagogarzon","id":11463617,"avatar_url":"https://avatars.githubusercontent.com/u/11463617?v=3","gravatar_id":"","url":"https://api.github.com/users/santiagogarzon","html_url":"https://github.com/santiagogarzon","followers_url":"https://api.github.com/users/santiagogarzon/followers","following_url":"https://api.github.com/users/santiagogarzon/following{/other_user}","gists_url":"https://api.github.com/users/santiagogarzon/gists{/gist_id}","starred_url":"https://api.github.com/users/santiagogarzon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santiagogarzon/subscriptions","organizations_url":"https://api.github.com/users/santiagogarzon/orgs","repos_url":"https://api.github.com/users/santiagogarzon/repos","events_url":"https://api.github.com/users/santiagogarzon/events{/privacy}","received_events_url":"https://api.github.com/users/santiagogarzon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/santiagogarzon/bootcamp-ui","description":"","fork":true,"url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui","forks_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/forks","keys_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/teams","hooks_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/hooks","issue_events_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/issues/events{/number}","events_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/events","assignees_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/assignees{/user}","branches_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/branches{/branch}","tags_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/tags","blobs_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/languages","stargazers_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/stargazers","contributors_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/contributors","subscribers_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/subscribers","subscription_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/subscription","commits_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/contents/{+path}","compare_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/merges","archive_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/downloads","issues_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/issues{/number}","pulls_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/labels{/name}","releases_url":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/releases{/id}","created_at":"2015-10-27T04:57:21Z","updated_at":"2015-10-29T18:03:54Z","pushed_at":"2015-11-16T14:53:02Z","git_url":"git://github.com/santiagogarzon/bootcamp-ui.git","ssh_url":"git@github.com:santiagogarzon/bootcamp-ui.git","clone_url":"https://github.com/santiagogarzon/bootcamp-ui.git","svn_url":"https://github.com/santiagogarzon/bootcamp-ui","homepage":null,"size":17172,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/pulls/6"},"html":{"href":"https://github.com/santiagogarzon/bootcamp-ui/pull/6"},"issue":{"href":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/issues/6"},"comments":{"href":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/santiagogarzon/bootcamp-ui/statuses/18c3da6fc619a8d5e4aa3babbbf1735c99adbbcb"}}}}