{"action":"created","comment":{"url":"https://api.github.com/repos/angular/material/pulls/comments/51218110","id":51218110,"diff_hunk":"@@ -0,0 +1,284 @@\n+/**\n+ * @ngdoc module\n+ * @name material.components.panel\n+ */\n+angular\n+    .module('material.components.panel', [\n+      'material.core'\n+    ])\n+    .service('$mdPanel', MdPanelService);\n+\n+/**\n+ * @ngdoc service\n+ * @name $mdPanel\n+ * @module material.components.panel\n+ *\n+ * @description\n+ * `$mdPanel` is a general component that can be used for any panels on the screen,\n+ * such as a tooltip, dialog, or custom popup.\n+ *\n+ * @usage\n+ * <hljs lang=\"js\">\n+ * (function(angular, undefined) {\n+ *   ‘use strict’;\n+ *\n+ *   angular\n+ *       .module('demoApp', ['ngMaterial'])\n+ *       .controller('PizzaBuilderController', PizzaBuilderController)\n+ *       .controller('PizzaDialogController', DialogController);\n+ *\n+ *   function PizzaBuilderController($element, $mdPanel) {\n+ *     var panelRef;\n+ *     var toppings = [\n+ *       'pepperoni',\n+ *       'sausage',\n+ *       'ham',\n+ *       'peppers',\n+ *       'onions',\n+ *       'pineapple'\n+ *     ];\n+ *\n+ *     function showPizzaPanel($event) {\n+ *       var config = {\n+ *         parent: angular.element(document.body),\n+ *         controller: DialogController,\n+ *         controllerAs: 'ctrl',\n+ *         position: $element,\n+ *         targetEvent: $event,\n+ *         template:\n+ *           '<div class=\"pizza-panel\">' +","path":"src/components/panel/panel.js","position":49,"original_position":49,"commit_id":"5d2203089416bdb0f30df0fa12fa60b688eae706","original_commit_id":"5d2203089416bdb0f30df0fa12fa60b688eae706","user":{"login":"jelbourn","id":838736,"avatar_url":"https://avatars.githubusercontent.com/u/838736?v=3","gravatar_id":"","url":"https://api.github.com/users/jelbourn","html_url":"https://github.com/jelbourn","followers_url":"https://api.github.com/users/jelbourn/followers","following_url":"https://api.github.com/users/jelbourn/following{/other_user}","gists_url":"https://api.github.com/users/jelbourn/gists{/gist_id}","starred_url":"https://api.github.com/users/jelbourn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelbourn/subscriptions","organizations_url":"https://api.github.com/users/jelbourn/orgs","repos_url":"https://api.github.com/users/jelbourn/repos","events_url":"https://api.github.com/users/jelbourn/events{/privacy}","received_events_url":"https://api.github.com/users/jelbourn/received_events","type":"User","site_admin":false},"body":"It's okay to use a fake `templateUrl` instead of a whole template for the example.","created_at":"2016-01-29T02:11:24Z","updated_at":"2016-01-29T02:11:24Z","html_url":"https://github.com/angular/material/pull/6908#discussion_r51218110","pull_request_url":"https://api.github.com/repos/angular/material/pulls/6908","_links":{"self":{"href":"https://api.github.com/repos/angular/material/pulls/comments/51218110"},"html":{"href":"https://github.com/angular/material/pull/6908#discussion_r51218110"},"pull_request":{"href":"https://api.github.com/repos/angular/material/pulls/6908"}}},"pull_request":{"url":"https://api.github.com/repos/angular/material/pulls/6908","id":57583225,"html_url":"https://github.com/angular/material/pull/6908","diff_url":"https://github.com/angular/material/pull/6908.diff","patch_url":"https://github.com/angular/material/pull/6908.patch","issue_url":"https://api.github.com/repos/angular/material/issues/6908","number":6908,"state":"open","locked":false,"title":"feat: Initial $mdPanel implementation.","user":{"login":"ErinCoughlan","id":2660421,"avatar_url":"https://avatars.githubusercontent.com/u/2660421?v=3","gravatar_id":"","url":"https://api.github.com/users/ErinCoughlan","html_url":"https://github.com/ErinCoughlan","followers_url":"https://api.github.com/users/ErinCoughlan/followers","following_url":"https://api.github.com/users/ErinCoughlan/following{/other_user}","gists_url":"https://api.github.com/users/ErinCoughlan/gists{/gist_id}","starred_url":"https://api.github.com/users/ErinCoughlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErinCoughlan/subscriptions","organizations_url":"https://api.github.com/users/ErinCoughlan/orgs","repos_url":"https://api.github.com/users/ErinCoughlan/repos","events_url":"https://api.github.com/users/ErinCoughlan/events{/privacy}","received_events_url":"https://api.github.com/users/ErinCoughlan/received_events","type":"User","site_admin":false},"body":"@gmoothart @DerekLouie @KarenParker \r\n\r\nThis is the initial files for the $mdPanel implementation. Please be picky about style and documentation since we will continue with it in future commits.\r\n\r\n@jelbourn I'm also unsure how to get the $mdPanelRef to appear on the material site. It's not a service, so there's no page for it. But I do want the specific definition, properties, and methods defined.\r\n\r\nCurrent version: <img width=\"846\" alt=\"panel_ref\" src=\"https://cloud.githubusercontent.com/assets/2660421/12662156/22978270-c5d3-11e5-8c1c-9cf1ce2e6178.png\">","created_at":"2016-01-28T23:24:51Z","updated_at":"2016-01-29T02:11:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef2457f8f6dd16f8a101d2c37dc556f6804a2a53","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/angular/material/pulls/6908/commits","review_comments_url":"https://api.github.com/repos/angular/material/pulls/6908/comments","review_comment_url":"https://api.github.com/repos/angular/material/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/material/issues/6908/comments","statuses_url":"https://api.github.com/repos/angular/material/statuses/5d2203089416bdb0f30df0fa12fa60b688eae706","head":{"label":"ErinCoughlan:panel-impl","ref":"panel-impl","sha":"5d2203089416bdb0f30df0fa12fa60b688eae706","user":{"login":"ErinCoughlan","id":2660421,"avatar_url":"https://avatars.githubusercontent.com/u/2660421?v=3","gravatar_id":"","url":"https://api.github.com/users/ErinCoughlan","html_url":"https://github.com/ErinCoughlan","followers_url":"https://api.github.com/users/ErinCoughlan/followers","following_url":"https://api.github.com/users/ErinCoughlan/following{/other_user}","gists_url":"https://api.github.com/users/ErinCoughlan/gists{/gist_id}","starred_url":"https://api.github.com/users/ErinCoughlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErinCoughlan/subscriptions","organizations_url":"https://api.github.com/users/ErinCoughlan/orgs","repos_url":"https://api.github.com/users/ErinCoughlan/repos","events_url":"https://api.github.com/users/ErinCoughlan/events{/privacy}","received_events_url":"https://api.github.com/users/ErinCoughlan/received_events","type":"User","site_admin":false},"repo":{"id":49018875,"name":"material","full_name":"ErinCoughlan/material","owner":{"login":"ErinCoughlan","id":2660421,"avatar_url":"https://avatars.githubusercontent.com/u/2660421?v=3","gravatar_id":"","url":"https://api.github.com/users/ErinCoughlan","html_url":"https://github.com/ErinCoughlan","followers_url":"https://api.github.com/users/ErinCoughlan/followers","following_url":"https://api.github.com/users/ErinCoughlan/following{/other_user}","gists_url":"https://api.github.com/users/ErinCoughlan/gists{/gist_id}","starred_url":"https://api.github.com/users/ErinCoughlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErinCoughlan/subscriptions","organizations_url":"https://api.github.com/users/ErinCoughlan/orgs","repos_url":"https://api.github.com/users/ErinCoughlan/repos","events_url":"https://api.github.com/users/ErinCoughlan/events{/privacy}","received_events_url":"https://api.github.com/users/ErinCoughlan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ErinCoughlan/material","description":"Material design for Angular","fork":true,"url":"https://api.github.com/repos/ErinCoughlan/material","forks_url":"https://api.github.com/repos/ErinCoughlan/material/forks","keys_url":"https://api.github.com/repos/ErinCoughlan/material/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ErinCoughlan/material/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ErinCoughlan/material/teams","hooks_url":"https://api.github.com/repos/ErinCoughlan/material/hooks","issue_events_url":"https://api.github.com/repos/ErinCoughlan/material/issues/events{/number}","events_url":"https://api.github.com/repos/ErinCoughlan/material/events","assignees_url":"https://api.github.com/repos/ErinCoughlan/material/assignees{/user}","branches_url":"https://api.github.com/repos/ErinCoughlan/material/branches{/branch}","tags_url":"https://api.github.com/repos/ErinCoughlan/material/tags","blobs_url":"https://api.github.com/repos/ErinCoughlan/material/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ErinCoughlan/material/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ErinCoughlan/material/git/refs{/sha}","trees_url":"https://api.github.com/repos/ErinCoughlan/material/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ErinCoughlan/material/statuses/{sha}","languages_url":"https://api.github.com/repos/ErinCoughlan/material/languages","stargazers_url":"https://api.github.com/repos/ErinCoughlan/material/stargazers","contributors_url":"https://api.github.com/repos/ErinCoughlan/material/contributors","subscribers_url":"https://api.github.com/repos/ErinCoughlan/material/subscribers","subscription_url":"https://api.github.com/repos/ErinCoughlan/material/subscription","commits_url":"https://api.github.com/repos/ErinCoughlan/material/commits{/sha}","git_commits_url":"https://api.github.com/repos/ErinCoughlan/material/git/commits{/sha}","comments_url":"https://api.github.com/repos/ErinCoughlan/material/comments{/number}","issue_comment_url":"https://api.github.com/repos/ErinCoughlan/material/issues/comments{/number}","contents_url":"https://api.github.com/repos/ErinCoughlan/material/contents/{+path}","compare_url":"https://api.github.com/repos/ErinCoughlan/material/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ErinCoughlan/material/merges","archive_url":"https://api.github.com/repos/ErinCoughlan/material/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ErinCoughlan/material/downloads","issues_url":"https://api.github.com/repos/ErinCoughlan/material/issues{/number}","pulls_url":"https://api.github.com/repos/ErinCoughlan/material/pulls{/number}","milestones_url":"https://api.github.com/repos/ErinCoughlan/material/milestones{/number}","notifications_url":"https://api.github.com/repos/ErinCoughlan/material/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ErinCoughlan/material/labels{/name}","releases_url":"https://api.github.com/repos/ErinCoughlan/material/releases{/id}","deployments_url":"https://api.github.com/repos/ErinCoughlan/material/deployments","created_at":"2016-01-04T19:43:14Z","updated_at":"2016-01-04T19:43:17Z","pushed_at":"2016-01-28T23:11:07Z","git_url":"git://github.com/ErinCoughlan/material.git","ssh_url":"git@github.com:ErinCoughlan/material.git","clone_url":"https://github.com/ErinCoughlan/material.git","svn_url":"https://github.com/ErinCoughlan/material","homepage":"https://material.angularjs.org/","size":58105,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"angular:feat/panel","ref":"feat/panel","sha":"4d5e0ed08ff28ba63f858be851f725a0f778389f","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":21399598,"name":"material","full_name":"angular/material","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/material","description":"Material design for Angular","fork":false,"url":"https://api.github.com/repos/angular/material","forks_url":"https://api.github.com/repos/angular/material/forks","keys_url":"https://api.github.com/repos/angular/material/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/material/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/material/teams","hooks_url":"https://api.github.com/repos/angular/material/hooks","issue_events_url":"https://api.github.com/repos/angular/material/issues/events{/number}","events_url":"https://api.github.com/repos/angular/material/events","assignees_url":"https://api.github.com/repos/angular/material/assignees{/user}","branches_url":"https://api.github.com/repos/angular/material/branches{/branch}","tags_url":"https://api.github.com/repos/angular/material/tags","blobs_url":"https://api.github.com/repos/angular/material/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/material/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/material/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/material/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/material/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/material/languages","stargazers_url":"https://api.github.com/repos/angular/material/stargazers","contributors_url":"https://api.github.com/repos/angular/material/contributors","subscribers_url":"https://api.github.com/repos/angular/material/subscribers","subscription_url":"https://api.github.com/repos/angular/material/subscription","commits_url":"https://api.github.com/repos/angular/material/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/material/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/material/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/material/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/material/contents/{+path}","compare_url":"https://api.github.com/repos/angular/material/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/material/merges","archive_url":"https://api.github.com/repos/angular/material/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/material/downloads","issues_url":"https://api.github.com/repos/angular/material/issues{/number}","pulls_url":"https://api.github.com/repos/angular/material/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/material/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/material/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/material/labels{/name}","releases_url":"https://api.github.com/repos/angular/material/releases{/id}","deployments_url":"https://api.github.com/repos/angular/material/deployments","created_at":"2014-07-01T19:20:06Z","updated_at":"2016-01-29T01:10:08Z","pushed_at":"2016-01-28T23:32:52Z","git_url":"git://github.com/angular/material.git","ssh_url":"git@github.com:angular/material.git","clone_url":"https://github.com/angular/material.git","svn_url":"https://github.com/angular/material","homepage":"https://material.angularjs.org/","size":45948,"stargazers_count":12334,"watchers_count":12334,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2340,"mirror_url":null,"open_issues_count":1584,"forks":2340,"open_issues":1584,"watchers":12334,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/material/pulls/6908"},"html":{"href":"https://github.com/angular/material/pull/6908"},"issue":{"href":"https://api.github.com/repos/angular/material/issues/6908"},"comments":{"href":"https://api.github.com/repos/angular/material/issues/6908/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/material/pulls/6908/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/material/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/material/pulls/6908/commits"},"statuses":{"href":"https://api.github.com/repos/angular/material/statuses/5d2203089416bdb0f30df0fa12fa60b688eae706"}}}}