{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/12530","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/12530/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/12530/comments","events_url":"https://api.github.com/repos/angular/angular/issues/12530/events","html_url":"https://github.com/angular/angular/issues/12530","id":185246319,"number":12530,"title":"ng-content default content","user":{"login":"mbeckenbach","id":6654388,"avatar_url":"https://avatars0.githubusercontent.com/u/6654388?v=3","gravatar_id":"","url":"https://api.github.com/users/mbeckenbach","html_url":"https://github.com/mbeckenbach","followers_url":"https://api.github.com/users/mbeckenbach/followers","following_url":"https://api.github.com/users/mbeckenbach/following{/other_user}","gists_url":"https://api.github.com/users/mbeckenbach/gists{/gist_id}","starred_url":"https://api.github.com/users/mbeckenbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbeckenbach/subscriptions","organizations_url":"https://api.github.com/users/mbeckenbach/orgs","repos_url":"https://api.github.com/users/mbeckenbach/repos","events_url":"https://api.github.com/users/mbeckenbach/events{/privacy}","received_events_url":"https://api.github.com/users/mbeckenbach/received_events","type":"User","site_admin":false},"labels":[{"id":375501288,"url":"https://api.github.com/repos/angular/angular/labels/comp:%20core%20&%20compiler","name":"comp: core & compiler","color":"c7def8","default":false},{"id":375496864,"url":"https://api.github.com/repos/angular/angular/labels/freq1:%20low","name":"freq1: low","color":"fbca04","default":false},{"id":130606845,"url":"https://api.github.com/repos/angular/angular/labels/type:%20feature","name":"type: feature","color":"EEEEEE","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-25T22:03:44Z","updated_at":"2017-04-25T17:55:14Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\n\n```\n[ ] bug report => search github for a similar issue or PR before submitting\n[x] feature request\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\n```\n\n**Current behavior**\nWhen you add something inside a ng-content tag you get an error message: <ng-content> element cannot have content.\n\n**Expected behavior**\nShould render the html inside the ng-content tag as a default if no content was given. \n\n**Minimal reproduction of the problem with instructions**\nCreate a component that uses ng-content somewhere. Put some html inside, that should be rendered when nothing else is 'injected' there from outside. Then use the component somewhere else. \n\n**What is the motivation / use case for changing the behavior?**\nIn some cases you need a default behavior that can be replaced. In my case its an app header that shows the logo. When you navigate to a sub-page the logo will be replaced by a back button. It feels strange to add something like an input property to hide or show the logo. Some default content for ng content placeholders would feel much more intuitive.\n\n**Please tell us about your environment:**\nWin10, Angular CLI beta 18, VS Code\n- **Angular version:** 2.1.0\n  2.1.0\n- **Browser:** \n  All\n- **Language:**\n  TS\n- **Node (for AoT issues):** `node --version` =   \n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/297112872","html_url":"https://github.com/angular/angular/issues/12530#issuecomment-297112872","issue_url":"https://api.github.com/repos/angular/angular/issues/12530","id":297112872,"user":{"login":"emilio-martinez","id":9163179,"avatar_url":"https://avatars3.githubusercontent.com/u/9163179?v=3","gravatar_id":"","url":"https://api.github.com/users/emilio-martinez","html_url":"https://github.com/emilio-martinez","followers_url":"https://api.github.com/users/emilio-martinez/followers","following_url":"https://api.github.com/users/emilio-martinez/following{/other_user}","gists_url":"https://api.github.com/users/emilio-martinez/gists{/gist_id}","starred_url":"https://api.github.com/users/emilio-martinez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilio-martinez/subscriptions","organizations_url":"https://api.github.com/users/emilio-martinez/orgs","repos_url":"https://api.github.com/users/emilio-martinez/repos","events_url":"https://api.github.com/users/emilio-martinez/events{/privacy}","received_events_url":"https://api.github.com/users/emilio-martinez/received_events","type":"User","site_admin":false},"created_at":"2017-04-25T17:55:14Z","updated_at":"2017-04-25T17:55:14Z","body":"I don't know if adding something _inside_ `ng-content` is really the best approach for this, but I agree that a fallback value would be desirable. Perhaps it could interop with `ngIf Else Then`?"}}
{"actor":{"display_login":"emilio-martinez"}}