{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/15132","repository_url":"https://api.github.com/repos/angular/angular.js","labels_url":"https://api.github.com/repos/angular/angular.js/issues/15132/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/15132/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/15132/events","html_url":"https://github.com/angular/angular.js/pull/15132","id":176808024,"number":15132,"title":"fix($scope): fixes multiple root element error when there is a whites…","user":{"login":"prashantpawar","id":101647,"avatar_url":"https://avatars.githubusercontent.com/u/101647?v=3","gravatar_id":"","url":"https://api.github.com/users/prashantpawar","html_url":"https://github.com/prashantpawar","followers_url":"https://api.github.com/users/prashantpawar/followers","following_url":"https://api.github.com/users/prashantpawar/following{/other_user}","gists_url":"https://api.github.com/users/prashantpawar/gists{/gist_id}","starred_url":"https://api.github.com/users/prashantpawar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prashantpawar/subscriptions","organizations_url":"https://api.github.com/users/prashantpawar/orgs","repos_url":"https://api.github.com/users/prashantpawar/repos","events_url":"https://api.github.com/users/prashantpawar/events{/privacy}","received_events_url":"https://api.github.com/users/prashantpawar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular.js/labels/cla:%20no","name":"cla: no","color":"f7c6c7"},{"url":"https://api.github.com/repos/angular/angular.js/labels/component:%20$compile","name":"component: $compile","color":"e102d8"},{"url":"https://api.github.com/repos/angular/angular.js/labels/frequency:%20low","name":"frequency: low","color":"bfe5bf"},{"url":"https://api.github.com/repos/angular/angular.js/labels/severity:%20inconvenient","name":"severity: inconvenient","color":"006b75"},{"url":"https://api.github.com/repos/angular/angular.js/labels/type:%20bug","name":"type: bug","color":"000000"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/angular/angular.js/milestones/90","html_url":"https://github.com/angular/angular.js/milestones/1.5.x","labels_url":"https://api.github.com/repos/angular/angular.js/milestones/90/labels","id":1025270,"number":90,"title":"1.5.x","description":"","creator":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"open_issues":97,"closed_issues":192,"state":"open","created_at":"2015-03-17T12:15:49Z","updated_at":"2016-09-14T16:33:11Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-09-14T03:50:53Z","updated_at":"2016-09-14T17:41:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/angular/angular.js/pulls/15132","html_url":"https://github.com/angular/angular.js/pull/15132","diff_url":"https://github.com/angular/angular.js/pull/15132.diff","patch_url":"https://github.com/angular/angular.js/pull/15132.patch"},"body":"**What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)**\r\nBug fix\r\n\r\n\r\n**What is the current behavior? (You can also link to an open issue here)**\r\nIf one tries to load a directive with a top-level comment angular throws an error \r\nError: [$compile:tplrt] Template for directive 'myDirective' must have exactly one root element\r\nhttps://github.com/angular/angular.js/issues/15108\r\n\r\n\r\n**Does this PR introduce a breaking change?**\r\nNo\r\n\r\n\r\n**Please check if the PR fulfills these requirements**\r\n- [x] The commit message follows our guidelines: https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format\r\n- [x] Tests for the changes have been added (for bug fixes / features)\r\n- [x] Docs have been added / updated (for bug fixes / features)\r\n\r\n**Other information**:\r\n\r\n\r\nfixes multiple root element error when there is a whitespace after a comment\r\n\r\nAdded new conditional for NODE_TYPE_TEXT inside removeComments method of $compile\r\nAdded corresponding unit tests.\r\n\r\nCloses #15108"},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/247095589","html_url":"https://github.com/angular/angular.js/pull/15132#issuecomment-247095589","issue_url":"https://api.github.com/repos/angular/angular.js/issues/15132","id":247095589,"user":{"login":"googlebot","id":5384588,"avatar_url":"https://avatars.githubusercontent.com/u/5384588?v=3","gravatar_id":"","url":"https://api.github.com/users/googlebot","html_url":"https://github.com/googlebot","followers_url":"https://api.github.com/users/googlebot/followers","following_url":"https://api.github.com/users/googlebot/following{/other_user}","gists_url":"https://api.github.com/users/googlebot/gists{/gist_id}","starred_url":"https://api.github.com/users/googlebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googlebot/subscriptions","organizations_url":"https://api.github.com/users/googlebot/orgs","repos_url":"https://api.github.com/users/googlebot/repos","events_url":"https://api.github.com/users/googlebot/events{/privacy}","received_events_url":"https://api.github.com/users/googlebot/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T17:41:47Z","updated_at":"2016-09-14T17:41:47Z","body":"We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s).  If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA ([login here](https://cla.developers.google.com/) to double check)?  If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.\n\n<!-- need_author_cla -->"}}
{"actor":{"display_login":"googlebot"}}