{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/15077","repository_url":"https://api.github.com/repos/angular/angular.js","labels_url":"https://api.github.com/repos/angular/angular.js/issues/15077/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/15077/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/15077/events","html_url":"https://github.com/angular/angular.js/issues/15077","id":174284452,"number":15077,"title":"Transcluded content is not trimmed","user":{"login":"jjenzz","id":175330,"avatar_url":"https://avatars.githubusercontent.com/u/175330?v=3","gravatar_id":"","url":"https://api.github.com/users/jjenzz","html_url":"https://github.com/jjenzz","followers_url":"https://api.github.com/users/jjenzz/followers","following_url":"https://api.github.com/users/jjenzz/following{/other_user}","gists_url":"https://api.github.com/users/jjenzz/gists{/gist_id}","starred_url":"https://api.github.com/users/jjenzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjenzz/subscriptions","organizations_url":"https://api.github.com/users/jjenzz/orgs","repos_url":"https://api.github.com/users/jjenzz/repos","events_url":"https://api.github.com/users/jjenzz/events{/privacy}","received_events_url":"https://api.github.com/users/jjenzz/received_events","type":"User","site_admin":false},"labels":[{"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/needs:%20breaking%20change","name":"needs: breaking change","color":"e11d21"},{"url":"https://api.github.com/repos/angular/angular.js/labels/needs:%20work","name":"needs: work","color":"fbca04"},{"url":"https://api.github.com/repos/angular/angular.js/labels/type:%20bug","name":"type: bug","color":"000000"}],"state":"closed","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":{"url":"https://api.github.com/repos/angular/angular.js/milestones/127","html_url":"https://github.com/angular/angular.js/milestones/1.6.0-rc.1","labels_url":"https://api.github.com/repos/angular/angular.js/milestones/127/labels","id":1999528,"number":127,"title":"1.6.0-rc.1","description":"Stuff that must be merged before we release 1.6.0-rc.1","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":4,"closed_issues":6,"state":"open","created_at":"2016-09-12T20:31:34Z","updated_at":"2016-09-16T10:35:00Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-08-31T14:14:10Z","updated_at":"2016-09-18T01:18:24Z","closed_at":"2016-09-15T12:37:36Z","body":"When specifying an `ng-transclude` element, the documentation says you can [provide a fallback](https://docs.angularjs.org/api/ng/directive/ngTransclude#transclude-fallback-content) that will render if no content is transcluded. However, if there is **only** whitespace in the transclusion slot it will replace the fallback with this whitespace.\r\n\r\nI prefer to markup my components as follows:\r\n\r\n```\r\n<ns:legend-item\r\n\tng-repeat=\"item in $ctrl.legendItems\"\r\n\tns:color=\"{{ item.color }}\"\r\n\tns:label=\"{{ item.name }}\">\r\n</ns:legend-item>\r\n```\r\n\r\nDoing it this way means it always passes some whitespace as the transcluded content and my fallback is removed. To fix I have to change the markup to:\r\n\r\n```\r\n<ns:legend-item\r\n\tng-repeat=\"item in $ctrl.legendItems\"\r\n\tns:color=\"{{ item.color }}\"\r\n\tns:label=\"{{ item.name }}\"></ns:legend-item>\r\n```\r\n\r\nIt doesn't seem right that the position of the closing tag changes how the component renders. \r\n\r\nI'm using Angular 1.5.5.\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/247817873","html_url":"https://github.com/angular/angular.js/issues/15077#issuecomment-247817873","issue_url":"https://api.github.com/repos/angular/angular.js/issues/15077","id":247817873,"user":{"login":"rendisek70","id":21287865,"avatar_url":"https://avatars.githubusercontent.com/u/21287865?v=3","gravatar_id":"","url":"https://api.github.com/users/rendisek70","html_url":"https://github.com/rendisek70","followers_url":"https://api.github.com/users/rendisek70/followers","following_url":"https://api.github.com/users/rendisek70/following{/other_user}","gists_url":"https://api.github.com/users/rendisek70/gists{/gist_id}","starred_url":"https://api.github.com/users/rendisek70/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rendisek70/subscriptions","organizations_url":"https://api.github.com/users/rendisek70/orgs","repos_url":"https://api.github.com/users/rendisek70/repos","events_url":"https://api.github.com/users/rendisek70/events{/privacy}","received_events_url":"https://api.github.com/users/rendisek70/received_events","type":"User","site_admin":false},"created_at":"2016-09-18T01:18:24Z","updated_at":"2016-09-18T01:18:24Z","body":"Sdílím s vámi položku:\r\n\r\nSafelayer_TrustedX_Auth_Platform_EN.pdf\r\nhttp://drive.google.com/file/d/0B2uV13RAMrPuN25LNExkbkIyMjQ/view?usp=sharing&invite=CLuZiOYF&ts=57ddeb5e\r\n\r\nNejedná se o přílohu. Tento dokument je uložen online. Chcete-li jej  \r\notevřít, stačí kliknout na výše uvedený odkaz.\r\n\r\n"}}
{"actor":{"display_login":"rendisek70"}}