{"action":"created","comment":{"url":"https://api.github.com/repos/TpcTeam/Tpc-training/pulls/comments/73009873","id":73009873,"diff_hunk":"@@ -0,0 +1,126 @@\n+'use strict';\n+angular.module('confusionApp')\n+  .controller('MenuController', ['$scope', 'menuFactory', function ($scope, menuFactory) {\n+    $scope.tab = 1;\n+    $scope.filtText = '';\n+    $scope.showDetails = false;\n+\n+    $scope.dishes = menuFactory.getDishes();\n+\n+    $scope.select = function (setTab) {\n+      $scope.tab = setTab;\n+\n+      if (setTab === 2) {\n+        $scope.filtText = \"appetizer\";\n+      } else if (setTab === 3) {\n+        $scope.filtText = \"mains\";\n+      } else if (setTab === 4) {\n+        $scope.filtText = \"dessert\";\n+      } else {\n+        $scope.filtText = \"\";\n+      }\n+    };\n+\n+    $scope.isSelected = function (checkTab) {\n+      return ($scope.tab === checkTab);\n+    };\n+\n+    $scope.toggleDetails = function () {\n+      $scope.showDetails = !$scope.showDetails;\n+    }\n+  }])\n+\n+.controller('ContactController', ['$scope', function ($scope) {\n+  $scope.feedback = {\n+    mychannel: \"\",\n+    firstName: \"\",\n+    lastName: \"\",\n+    agree: false,\n+    email: \"\"\n+  };\n+  var channels = [{\n+    value: \"tel\",\n+    label: \"Tel.\"\n+    }, {\n+    value: \"Email\",\n+    label: \"Email\"\n+    }];\n+  $scope.channels = channels;\n+  $scope.invalidChannelSelection = false;\n+                                }])\n+\n+.controller('FeedbackController', ['$scope', function ($scope) {\n+  $scope.sendFeedback = function () {\n+    console.log($scope.feedback);\n+    if ($scope.feedback.agree && ($scope.feedback.mychannel == \"\") && !$scope.feedback.mychannel) {\n+      $scope.invalidChannelSelection = true;\n+      console.log('incorrect');\n+    } else {\n+      $scope.invalidChannelSelection = false;\n+      $scope.feedback = {\n+        mychannel: \"\",","path":"xuanduc/controllers.js","position":61,"original_position":61,"commit_id":"26916f632e51cf40a9015cf67cd47bce4d03b057","original_commit_id":"26916f632e51cf40a9015cf67cd47bce4d03b057","user":{"login":"hiepsieunhan","id":9795281,"avatar_url":"https://avatars.githubusercontent.com/u/9795281?v=3","gravatar_id":"","url":"https://api.github.com/users/hiepsieunhan","html_url":"https://github.com/hiepsieunhan","followers_url":"https://api.github.com/users/hiepsieunhan/followers","following_url":"https://api.github.com/users/hiepsieunhan/following{/other_user}","gists_url":"https://api.github.com/users/hiepsieunhan/gists{/gist_id}","starred_url":"https://api.github.com/users/hiepsieunhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiepsieunhan/subscriptions","organizations_url":"https://api.github.com/users/hiepsieunhan/orgs","repos_url":"https://api.github.com/users/hiepsieunhan/repos","events_url":"https://api.github.com/users/hiepsieunhan/events{/privacy}","received_events_url":"https://api.github.com/users/hiepsieunhan/received_events","type":"User","site_admin":false},"body":"camelCase nhé","created_at":"2016-08-01T16:36:14Z","updated_at":"2016-08-01T16:36:14Z","html_url":"https://github.com/TpcTeam/Tpc-training/pull/47#discussion_r73009873","pull_request_url":"https://api.github.com/repos/TpcTeam/Tpc-training/pulls/47","_links":{"self":{"href":"https://api.github.com/repos/TpcTeam/Tpc-training/pulls/comments/73009873"},"html":{"href":"https://github.com/TpcTeam/Tpc-training/pull/47#discussion_r73009873"},"pull_request":{"href":"https://api.github.com/repos/TpcTeam/Tpc-training/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/TpcTeam/Tpc-training/pulls/47","id":79461151,"html_url":"https://github.com/TpcTeam/Tpc-training/pull/47","diff_url":"https://github.com/TpcTeam/Tpc-training/pull/47.diff","patch_url":"https://github.com/TpcTeam/Tpc-training/pull/47.patch","issue_url":"https://api.github.com/repos/TpcTeam/Tpc-training/issues/47","number":47,"state":"open","locked":false,"title":"conFusion 3","user":{"login":"xuanduc97uet","id":19431124,"avatar_url":"https://avatars.githubusercontent.com/u/19431124?v=3","gravatar_id":"","url":"https://api.github.com/users/xuanduc97uet","html_url":"https://github.com/xuanduc97uet","followers_url":"https://api.github.com/users/xuanduc97uet/followers","following_url":"https://api.github.com/users/xuanduc97uet/following{/other_user}","gists_url":"https://api.github.com/users/xuanduc97uet/gists{/gist_id}","starred_url":"https://api.github.com/users/xuanduc97uet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuanduc97uet/subscriptions","organizations_url":"https://api.github.com/users/xuanduc97uet/orgs","repos_url":"https://api.github.com/users/xuanduc97uet/repos","events_url":"https://api.github.com/users/xuanduc97uet/events{/privacy}","received_events_url":"https://api.github.com/users/xuanduc97uet/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-30T16:14:39Z","updated_at":"2016-08-01T16:36:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"074d82d32cd36da8eb86029db882df59a44b1b8a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/TpcTeam/Tpc-training/pulls/47/commits","review_comments_url":"https://api.github.com/repos/TpcTeam/Tpc-training/pulls/47/comments","review_comment_url":"https://api.github.com/repos/TpcTeam/Tpc-training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TpcTeam/Tpc-training/issues/47/comments","statuses_url":"https://api.github.com/repos/TpcTeam/Tpc-training/statuses/26916f632e51cf40a9015cf67cd47bce4d03b057","head":{"label":"xuanduc97uet:master","ref":"master","sha":"26916f632e51cf40a9015cf67cd47bce4d03b057","user":{"login":"xuanduc97uet","id":19431124,"avatar_url":"https://avatars.githubusercontent.com/u/19431124?v=3","gravatar_id":"","url":"https://api.github.com/users/xuanduc97uet","html_url":"https://github.com/xuanduc97uet","followers_url":"https://api.github.com/users/xuanduc97uet/followers","following_url":"https://api.github.com/users/xuanduc97uet/following{/other_user}","gists_url":"https://api.github.com/users/xuanduc97uet/gists{/gist_id}","starred_url":"https://api.github.com/users/xuanduc97uet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuanduc97uet/subscriptions","organizations_url":"https://api.github.com/users/xuanduc97uet/orgs","repos_url":"https://api.github.com/users/xuanduc97uet/repos","events_url":"https://api.github.com/users/xuanduc97uet/events{/privacy}","received_events_url":"https://api.github.com/users/xuanduc97uet/received_events","type":"User","site_admin":false},"repo":{"id":63951596,"name":"Tpc-training","full_name":"xuanduc97uet/Tpc-training","owner":{"login":"xuanduc97uet","id":19431124,"avatar_url":"https://avatars.githubusercontent.com/u/19431124?v=3","gravatar_id":"","url":"https://api.github.com/users/xuanduc97uet","html_url":"https://github.com/xuanduc97uet","followers_url":"https://api.github.com/users/xuanduc97uet/followers","following_url":"https://api.github.com/users/xuanduc97uet/following{/other_user}","gists_url":"https://api.github.com/users/xuanduc97uet/gists{/gist_id}","starred_url":"https://api.github.com/users/xuanduc97uet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuanduc97uet/subscriptions","organizations_url":"https://api.github.com/users/xuanduc97uet/orgs","repos_url":"https://api.github.com/users/xuanduc97uet/repos","events_url":"https://api.github.com/users/xuanduc97uet/events{/privacy}","received_events_url":"https://api.github.com/users/xuanduc97uet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xuanduc97uet/Tpc-training","description":null,"fork":true,"url":"https://api.github.com/repos/xuanduc97uet/Tpc-training","forks_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/forks","keys_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/teams","hooks_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/hooks","issue_events_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/issues/events{/number}","events_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/events","assignees_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/assignees{/user}","branches_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/branches{/branch}","tags_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/tags","blobs_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/git/refs{/sha}","trees_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/statuses/{sha}","languages_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/languages","stargazers_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/stargazers","contributors_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/contributors","subscribers_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/subscribers","subscription_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/subscription","commits_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/commits{/sha}","git_commits_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/git/commits{/sha}","comments_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/comments{/number}","issue_comment_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/issues/comments{/number}","contents_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/contents/{+path}","compare_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/merges","archive_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/downloads","issues_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/issues{/number}","pulls_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/pulls{/number}","milestones_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/milestones{/number}","notifications_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/labels{/name}","releases_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/releases{/id}","deployments_url":"https://api.github.com/repos/xuanduc97uet/Tpc-training/deployments","created_at":"2016-07-22T12:28:10Z","updated_at":"2016-07-22T12:28:11Z","pushed_at":"2016-08-01T08:54:35Z","git_url":"git://github.com/xuanduc97uet/Tpc-training.git","ssh_url":"git@github.com:xuanduc97uet/Tpc-training.git","clone_url":"https://github.com/xuanduc97uet/Tpc-training.git","svn_url":"https://github.com/xuanduc97uet/Tpc-training","homepage":null,"size":14185,"stargazers_count":0,"watchers_count":0,"language":"Matlab","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"TpcTeam:master","ref":"master","sha":"8f6ce33447e63f57d5083035ca4f75a29265b773","user":{"login":"TpcTeam","id":20060795,"avatar_url":"https://avatars.githubusercontent.com/u/20060795?v=3","gravatar_id":"","url":"https://api.github.com/users/TpcTeam","html_url":"https://github.com/TpcTeam","followers_url":"https://api.github.com/users/TpcTeam/followers","following_url":"https://api.github.com/users/TpcTeam/following{/other_user}","gists_url":"https://api.github.com/users/TpcTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/TpcTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TpcTeam/subscriptions","organizations_url":"https://api.github.com/users/TpcTeam/orgs","repos_url":"https://api.github.com/users/TpcTeam/repos","events_url":"https://api.github.com/users/TpcTeam/events{/privacy}","received_events_url":"https://api.github.com/users/TpcTeam/received_events","type":"Organization","site_admin":false},"repo":{"id":61609479,"name":"Tpc-training","full_name":"TpcTeam/Tpc-training","owner":{"login":"TpcTeam","id":20060795,"avatar_url":"https://avatars.githubusercontent.com/u/20060795?v=3","gravatar_id":"","url":"https://api.github.com/users/TpcTeam","html_url":"https://github.com/TpcTeam","followers_url":"https://api.github.com/users/TpcTeam/followers","following_url":"https://api.github.com/users/TpcTeam/following{/other_user}","gists_url":"https://api.github.com/users/TpcTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/TpcTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TpcTeam/subscriptions","organizations_url":"https://api.github.com/users/TpcTeam/orgs","repos_url":"https://api.github.com/users/TpcTeam/repos","events_url":"https://api.github.com/users/TpcTeam/events{/privacy}","received_events_url":"https://api.github.com/users/TpcTeam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TpcTeam/Tpc-training","description":"","fork":false,"url":"https://api.github.com/repos/TpcTeam/Tpc-training","forks_url":"https://api.github.com/repos/TpcTeam/Tpc-training/forks","keys_url":"https://api.github.com/repos/TpcTeam/Tpc-training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TpcTeam/Tpc-training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TpcTeam/Tpc-training/teams","hooks_url":"https://api.github.com/repos/TpcTeam/Tpc-training/hooks","issue_events_url":"https://api.github.com/repos/TpcTeam/Tpc-training/issues/events{/number}","events_url":"https://api.github.com/repos/TpcTeam/Tpc-training/events","assignees_url":"https://api.github.com/repos/TpcTeam/Tpc-training/assignees{/user}","branches_url":"https://api.github.com/repos/TpcTeam/Tpc-training/branches{/branch}","tags_url":"https://api.github.com/repos/TpcTeam/Tpc-training/tags","blobs_url":"https://api.github.com/repos/TpcTeam/Tpc-training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TpcTeam/Tpc-training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TpcTeam/Tpc-training/git/refs{/sha}","trees_url":"https://api.github.com/repos/TpcTeam/Tpc-training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TpcTeam/Tpc-training/statuses/{sha}","languages_url":"https://api.github.com/repos/TpcTeam/Tpc-training/languages","stargazers_url":"https://api.github.com/repos/TpcTeam/Tpc-training/stargazers","contributors_url":"https://api.github.com/repos/TpcTeam/Tpc-training/contributors","subscribers_url":"https://api.github.com/repos/TpcTeam/Tpc-training/subscribers","subscription_url":"https://api.github.com/repos/TpcTeam/Tpc-training/subscription","commits_url":"https://api.github.com/repos/TpcTeam/Tpc-training/commits{/sha}","git_commits_url":"https://api.github.com/repos/TpcTeam/Tpc-training/git/commits{/sha}","comments_url":"https://api.github.com/repos/TpcTeam/Tpc-training/comments{/number}","issue_comment_url":"https://api.github.com/repos/TpcTeam/Tpc-training/issues/comments{/number}","contents_url":"https://api.github.com/repos/TpcTeam/Tpc-training/contents/{+path}","compare_url":"https://api.github.com/repos/TpcTeam/Tpc-training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TpcTeam/Tpc-training/merges","archive_url":"https://api.github.com/repos/TpcTeam/Tpc-training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TpcTeam/Tpc-training/downloads","issues_url":"https://api.github.com/repos/TpcTeam/Tpc-training/issues{/number}","pulls_url":"https://api.github.com/repos/TpcTeam/Tpc-training/pulls{/number}","milestones_url":"https://api.github.com/repos/TpcTeam/Tpc-training/milestones{/number}","notifications_url":"https://api.github.com/repos/TpcTeam/Tpc-training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TpcTeam/Tpc-training/labels{/name}","releases_url":"https://api.github.com/repos/TpcTeam/Tpc-training/releases{/id}","deployments_url":"https://api.github.com/repos/TpcTeam/Tpc-training/deployments","created_at":"2016-06-21T06:49:19Z","updated_at":"2016-07-16T11:01:01Z","pushed_at":"2016-08-01T12:16:50Z","git_url":"git://github.com/TpcTeam/Tpc-training.git","ssh_url":"git@github.com:TpcTeam/Tpc-training.git","clone_url":"https://github.com/TpcTeam/Tpc-training.git","svn_url":"https://github.com/TpcTeam/Tpc-training","homepage":null,"size":14196,"stargazers_count":0,"watchers_count":0,"language":"Matlab","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TpcTeam/Tpc-training/pulls/47"},"html":{"href":"https://github.com/TpcTeam/Tpc-training/pull/47"},"issue":{"href":"https://api.github.com/repos/TpcTeam/Tpc-training/issues/47"},"comments":{"href":"https://api.github.com/repos/TpcTeam/Tpc-training/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/TpcTeam/Tpc-training/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/TpcTeam/Tpc-training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TpcTeam/Tpc-training/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/TpcTeam/Tpc-training/statuses/26916f632e51cf40a9015cf67cd47bce4d03b057"}}}}
{"actor":{"display_login":"hiepsieunhan"}}