{"action":"created","comment":{"url":"https://api.github.com/repos/Gizra/generator-hedley/pulls/comments/23131819","id":23131819,"diff_hunk":"@@ -0,0 +1,40 @@\n+'use strict';\n+\n+/**\n+ * @ngdoc directive\n+ * @name clientApp.directive:loadingBarText\n+ * @description\n+ * # loadingBarText\n+ */\n+angular.module('clientApp')\n+  .directive('loadingBarText', function () {\n+    return {\n+      retrict: 'EA',\n+      template: '<div class=\\\"splash-screen\\\" ng-show=\"isLoading\">{{text}}</div>',\n+      controller: function($scope) {\n+        $scope.text = 'loading...';\n+        $scope.isLoading = false;\n+\n+        /**\n+         * Determine if the text is showing.\n+         *\n+         * @param isLoading - Boolean\n+         *  True show the text, false hide it.\n+         */\n+        function setLoading(isLoading) {\n+          $scope.isLoading = isLoading;\n+        }\n+\n+        // Events to set the message when start the XHR request until is completed.\n+        $scope.$on('cfpLoadingBar:started', function() {\n+          setLoading(true);\n+        });\n+\n+        $scope.$on('cfpLoadingBar:completed', function() {\n+          setLoading(false);\n+        });\n+      },\n+      // Isolate scope.\n+      scope: {}","path":"app/templates/client/app/scripts/directives/loadingbartext.js","position":38,"original_position":38,"commit_id":"97990db0f0f998cc122b2364601b8e54c1967029","original_commit_id":"97990db0f0f998cc122b2364601b8e54c1967029","user":{"login":"amitaibu","id":125707,"avatar_url":"https://avatars.githubusercontent.com/u/125707?v=3","gravatar_id":"","url":"https://api.github.com/users/amitaibu","html_url":"https://github.com/amitaibu","followers_url":"https://api.github.com/users/amitaibu/followers","following_url":"https://api.github.com/users/amitaibu/following{/other_user}","gists_url":"https://api.github.com/users/amitaibu/gists{/gist_id}","starred_url":"https://api.github.com/users/amitaibu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitaibu/subscriptions","organizations_url":"https://api.github.com/users/amitaibu/orgs","repos_url":"https://api.github.com/users/amitaibu/repos","events_url":"https://api.github.com/users/amitaibu/events{/privacy}","received_events_url":"https://api.github.com/users/amitaibu/received_events","type":"User","site_admin":false},"body":"this part isn't clear","created_at":"2015-01-18T08:47:36Z","updated_at":"2015-01-18T08:47:36Z","html_url":"https://github.com/Gizra/generator-hedley/pull/28#discussion_r23131819","pull_request_url":"https://api.github.com/repos/Gizra/generator-hedley/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/Gizra/generator-hedley/pulls/comments/23131819"},"html":{"href":"https://github.com/Gizra/generator-hedley/pull/28#discussion_r23131819"},"pull_request":{"href":"https://api.github.com/repos/Gizra/generator-hedley/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/Gizra/generator-hedley/pulls/28","id":27181625,"html_url":"https://github.com/Gizra/generator-hedley/pull/28","diff_url":"https://github.com/Gizra/generator-hedley/pull/28.diff","patch_url":"https://github.com/Gizra/generator-hedley/pull/28.patch","issue_url":"https://api.github.com/repos/Gizra/generator-hedley/issues/28","number":28,"state":"open","locked":false,"title":"feat: add loading bar to each XHR.","user":{"login":"ceoaliongroo","id":2622152,"avatar_url":"https://avatars.githubusercontent.com/u/2622152?v=3","gravatar_id":"","url":"https://api.github.com/users/ceoaliongroo","html_url":"https://github.com/ceoaliongroo","followers_url":"https://api.github.com/users/ceoaliongroo/followers","following_url":"https://api.github.com/users/ceoaliongroo/following{/other_user}","gists_url":"https://api.github.com/users/ceoaliongroo/gists{/gist_id}","starred_url":"https://api.github.com/users/ceoaliongroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceoaliongroo/subscriptions","organizations_url":"https://api.github.com/users/ceoaliongroo/orgs","repos_url":"https://api.github.com/users/ceoaliongroo/repos","events_url":"https://api.github.com/users/ceoaliongroo/events{/privacy}","received_events_url":"https://api.github.com/users/ceoaliongroo/received_events","type":"User","site_admin":false},"body":"#27 \r\n\r\n![screen shot 2015-01-13 at 11 30 29 am](https://cloud.githubusercontent.com/assets/2622152/5718529/a1ba2338-9b17-11e4-9e67-6f0aa9bc3c45.png)\r\n","created_at":"2015-01-12T09:18:44Z","updated_at":"2015-01-18T08:47:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20213683fb3ed7cce64f80f045e13605258a59ab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Gizra/generator-hedley/pulls/28/commits","review_comments_url":"https://api.github.com/repos/Gizra/generator-hedley/pulls/28/comments","review_comment_url":"https://api.github.com/repos/Gizra/generator-hedley/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Gizra/generator-hedley/issues/28/comments","statuses_url":"https://api.github.com/repos/Gizra/generator-hedley/statuses/97990db0f0f998cc122b2364601b8e54c1967029","head":{"label":"ceoaliongroo:27","ref":"27","sha":"97990db0f0f998cc122b2364601b8e54c1967029","user":{"login":"ceoaliongroo","id":2622152,"avatar_url":"https://avatars.githubusercontent.com/u/2622152?v=3","gravatar_id":"","url":"https://api.github.com/users/ceoaliongroo","html_url":"https://github.com/ceoaliongroo","followers_url":"https://api.github.com/users/ceoaliongroo/followers","following_url":"https://api.github.com/users/ceoaliongroo/following{/other_user}","gists_url":"https://api.github.com/users/ceoaliongroo/gists{/gist_id}","starred_url":"https://api.github.com/users/ceoaliongroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceoaliongroo/subscriptions","organizations_url":"https://api.github.com/users/ceoaliongroo/orgs","repos_url":"https://api.github.com/users/ceoaliongroo/repos","events_url":"https://api.github.com/users/ceoaliongroo/events{/privacy}","received_events_url":"https://api.github.com/users/ceoaliongroo/received_events","type":"User","site_admin":false},"repo":{"id":29125070,"name":"generator-hedley","full_name":"ceoaliongroo/generator-hedley","owner":{"login":"ceoaliongroo","id":2622152,"avatar_url":"https://avatars.githubusercontent.com/u/2622152?v=3","gravatar_id":"","url":"https://api.github.com/users/ceoaliongroo","html_url":"https://github.com/ceoaliongroo","followers_url":"https://api.github.com/users/ceoaliongroo/followers","following_url":"https://api.github.com/users/ceoaliongroo/following{/other_user}","gists_url":"https://api.github.com/users/ceoaliongroo/gists{/gist_id}","starred_url":"https://api.github.com/users/ceoaliongroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceoaliongroo/subscriptions","organizations_url":"https://api.github.com/users/ceoaliongroo/orgs","repos_url":"https://api.github.com/users/ceoaliongroo/repos","events_url":"https://api.github.com/users/ceoaliongroo/events{/privacy}","received_events_url":"https://api.github.com/users/ceoaliongroo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ceoaliongroo/generator-hedley","description":"Scaffold a headless Drupal backend, Angular app client,  Behat and PhanromCSS tests","fork":true,"url":"https://api.github.com/repos/ceoaliongroo/generator-hedley","forks_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/forks","keys_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/teams","hooks_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/hooks","issue_events_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/issues/events{/number}","events_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/events","assignees_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/assignees{/user}","branches_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/branches{/branch}","tags_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/tags","blobs_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/git/refs{/sha}","trees_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/statuses/{sha}","languages_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/languages","stargazers_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/stargazers","contributors_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/contributors","subscribers_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/subscribers","subscription_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/subscription","commits_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/commits{/sha}","git_commits_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/git/commits{/sha}","comments_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/comments{/number}","issue_comment_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/issues/comments/{number}","contents_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/contents/{+path}","compare_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/merges","archive_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/downloads","issues_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/issues{/number}","pulls_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/pulls{/number}","milestones_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/milestones{/number}","notifications_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/labels{/name}","releases_url":"https://api.github.com/repos/ceoaliongroo/generator-hedley/releases{/id}","created_at":"2015-01-12T08:05:25Z","updated_at":"2015-01-12T08:05:26Z","pushed_at":"2015-01-18T08:28:06Z","git_url":"git://github.com/ceoaliongroo/generator-hedley.git","ssh_url":"git@github.com:ceoaliongroo/generator-hedley.git","clone_url":"https://github.com/ceoaliongroo/generator-hedley.git","svn_url":"https://github.com/ceoaliongroo/generator-hedley","homepage":"http://www.gizra.com/content/yo-hedley","size":272,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"Gizra:master","ref":"master","sha":"d5780a02da4b794544420e0286e805330be2e5a2","user":{"login":"Gizra","id":2484795,"avatar_url":"https://avatars.githubusercontent.com/u/2484795?v=3","gravatar_id":"","url":"https://api.github.com/users/Gizra","html_url":"https://github.com/Gizra","followers_url":"https://api.github.com/users/Gizra/followers","following_url":"https://api.github.com/users/Gizra/following{/other_user}","gists_url":"https://api.github.com/users/Gizra/gists{/gist_id}","starred_url":"https://api.github.com/users/Gizra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gizra/subscriptions","organizations_url":"https://api.github.com/users/Gizra/orgs","repos_url":"https://api.github.com/users/Gizra/repos","events_url":"https://api.github.com/users/Gizra/events{/privacy}","received_events_url":"https://api.github.com/users/Gizra/received_events","type":"Organization","site_admin":false},"repo":{"id":28179191,"name":"generator-hedley","full_name":"Gizra/generator-hedley","owner":{"login":"Gizra","id":2484795,"avatar_url":"https://avatars.githubusercontent.com/u/2484795?v=3","gravatar_id":"","url":"https://api.github.com/users/Gizra","html_url":"https://github.com/Gizra","followers_url":"https://api.github.com/users/Gizra/followers","following_url":"https://api.github.com/users/Gizra/following{/other_user}","gists_url":"https://api.github.com/users/Gizra/gists{/gist_id}","starred_url":"https://api.github.com/users/Gizra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gizra/subscriptions","organizations_url":"https://api.github.com/users/Gizra/orgs","repos_url":"https://api.github.com/users/Gizra/repos","events_url":"https://api.github.com/users/Gizra/events{/privacy}","received_events_url":"https://api.github.com/users/Gizra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Gizra/generator-hedley","description":"Scaffold a headless Drupal backend, Angular app client,  Behat and PhanromCSS tests","fork":false,"url":"https://api.github.com/repos/Gizra/generator-hedley","forks_url":"https://api.github.com/repos/Gizra/generator-hedley/forks","keys_url":"https://api.github.com/repos/Gizra/generator-hedley/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gizra/generator-hedley/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gizra/generator-hedley/teams","hooks_url":"https://api.github.com/repos/Gizra/generator-hedley/hooks","issue_events_url":"https://api.github.com/repos/Gizra/generator-hedley/issues/events{/number}","events_url":"https://api.github.com/repos/Gizra/generator-hedley/events","assignees_url":"https://api.github.com/repos/Gizra/generator-hedley/assignees{/user}","branches_url":"https://api.github.com/repos/Gizra/generator-hedley/branches{/branch}","tags_url":"https://api.github.com/repos/Gizra/generator-hedley/tags","blobs_url":"https://api.github.com/repos/Gizra/generator-hedley/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gizra/generator-hedley/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gizra/generator-hedley/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gizra/generator-hedley/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gizra/generator-hedley/statuses/{sha}","languages_url":"https://api.github.com/repos/Gizra/generator-hedley/languages","stargazers_url":"https://api.github.com/repos/Gizra/generator-hedley/stargazers","contributors_url":"https://api.github.com/repos/Gizra/generator-hedley/contributors","subscribers_url":"https://api.github.com/repos/Gizra/generator-hedley/subscribers","subscription_url":"https://api.github.com/repos/Gizra/generator-hedley/subscription","commits_url":"https://api.github.com/repos/Gizra/generator-hedley/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gizra/generator-hedley/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gizra/generator-hedley/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gizra/generator-hedley/issues/comments/{number}","contents_url":"https://api.github.com/repos/Gizra/generator-hedley/contents/{+path}","compare_url":"https://api.github.com/repos/Gizra/generator-hedley/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gizra/generator-hedley/merges","archive_url":"https://api.github.com/repos/Gizra/generator-hedley/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gizra/generator-hedley/downloads","issues_url":"https://api.github.com/repos/Gizra/generator-hedley/issues{/number}","pulls_url":"https://api.github.com/repos/Gizra/generator-hedley/pulls{/number}","milestones_url":"https://api.github.com/repos/Gizra/generator-hedley/milestones{/number}","notifications_url":"https://api.github.com/repos/Gizra/generator-hedley/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gizra/generator-hedley/labels{/name}","releases_url":"https://api.github.com/repos/Gizra/generator-hedley/releases{/id}","created_at":"2014-12-18T10:35:36Z","updated_at":"2015-01-12T19:43:23Z","pushed_at":"2015-01-04T20:52:42Z","git_url":"git://github.com/Gizra/generator-hedley.git","ssh_url":"git@github.com:Gizra/generator-hedley.git","clone_url":"https://github.com/Gizra/generator-hedley.git","svn_url":"https://github.com/Gizra/generator-hedley","homepage":"http://www.gizra.com/content/yo-hedley","size":4784,"stargazers_count":31,"watchers_count":31,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":10,"forks":7,"open_issues":10,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Gizra/generator-hedley/pulls/28"},"html":{"href":"https://github.com/Gizra/generator-hedley/pull/28"},"issue":{"href":"https://api.github.com/repos/Gizra/generator-hedley/issues/28"},"comments":{"href":"https://api.github.com/repos/Gizra/generator-hedley/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/Gizra/generator-hedley/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/Gizra/generator-hedley/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Gizra/generator-hedley/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/Gizra/generator-hedley/statuses/97990db0f0f998cc122b2364601b8e54c1967029"}}}}