Title: ngProjectAs not working when applied inside ng-container · Issue #44755 · angular/angular · GitHub
Open Graph Title: ngProjectAs not working when applied inside ng-container · Issue #44755 · angular/angular
X Title: ngProjectAs not working when applied inside ng-container · Issue #44755 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? No Description
Open Graph Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? No Description
X Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? No Description <foo ngProjectAs="bar"> works correctly when used as a direct chi...
Opengraph URL: https://github.com/angular/angular/issues/44755
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ngProjectAs not working when applied inside ng-container","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nDon't known / other\n\n### Is this a regression?\n\nNo\n\n### Description\n\n`\u003cfoo ngProjectAs=\"bar\">` works correctly when used as a direct child.\r\n\r\nWhen places inside an `ng-container` however the element will show up inside of the default slot instead of the one named by `ngProjectAs`.\r\n\r\nSee example on stackblitz.\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://stackblitz.com/edit/angular-n8jv3w?file=src/app/app.component.html\n\n### Please provide the exception or error you saw\n\n```true\nThere is no error message, but the element is placed in the wrong place in the DOM.\n```\n\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI: 13.1.3\r\nNode: 14.16.0\r\nPackage Manager: npm 7.17.0\r\nOS: linux x64\r\n\r\nAngular: 13.1.2\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, router\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.1301.3\r\n@angular-devkit/build-angular 13.1.3\r\n@angular-devkit/core 13.1.3\r\n@angular-devkit/schematics 13.1.3\r\n@angular/cli 13.1.3\r\n@schematics/angular 13.1.3\r\nrxjs 7.4.0\r\ntypescript 4.5.4\n```\n\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/hv-pul","@type":"Person","name":"hv-pul"},"datePublished":"2022-01-19T15:40:29Z","url":"https://github.com/angular/angular/issues/44755"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:51441df4-0c0f-e28b-cb5f-72faddda3923 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E37E:2E3FEE:15D18CD:1BA9CB3:6B013112 |
| html-safe-nonce | 4a3613ba4fdbd4b2787e467043affdc77bf1588a08e185904b845c882860d750 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzdFOjJFM0ZFRToxNUQxOENEOjFCQTlDQjM6NkIwMTMxMTIiLCJ2aXNpdG9yX2lkIjoiNjA1MTk4MjMyMjAyMDk4NzE1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 68f9da1a481eb77e427dbc8f8b13374e94b90e5c27132cb6673fe90f12394bdf |
| hovercard-subject-tag | issue:1108253996 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/44755/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7a5c2f5de807a61a3c4c2c28b1ab24cc4e7eea5953d9326bb6944ad912d788c7/angular/angular/issues/44755 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a5c2f5de807a61a3c4c2c28b1ab24cc4e7eea5953d9326bb6944ad912d788c7/angular/angular/issues/44755 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? No Description |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hv-pul |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width