Title: hydration problems with ng-content · Issue #50175 · angular/angular · GitHub
Open Graph Title: hydration problems with ng-content · Issue #50175 · angular/angular
X Title: hydration problems with ng-content · Issue #50175 · angular/angular
Description: 🐞 Bug report What modules are related to this issue? builders common express-engine Is this a regression? no Description when enabling hydration and passing content with ng-content, the ng-content is filled with nothing 3 changes that fi...
Open Graph Description: 🐞 Bug report What modules are related to this issue? builders common express-engine Is this a regression? no Description when enabling hydration and passing content with ng-content, the ng-content ...
X Description: 🐞 Bug report What modules are related to this issue? builders common express-engine Is this a regression? no Description when enabling hydration and passing content with ng-content, the ng-content ...
Opengraph URL: https://github.com/angular/angular/issues/50175
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"hydration problems with ng-content","articleBody":"# 🐞 Bug report\r\n\r\n#### What modules are related to this issue?\r\n\r\n\u003c!-- ✍️edit: -->\r\n\r\n- [ ] builders\r\n- [ ] common\r\n- [x] express-engine\r\n\r\n### Is this a regression?\r\n\r\nno\r\n\r\n### Description\r\n\r\nwhen enabling hydration and passing content with ng-content, the ng-content is filled with nothing\r\n\r\n3 changes that fixes the issue\r\n1. instead of using Material to use `\u003cdiv>\u003cng-content>\u003c/ng-content>\u003c/div>` (so it only happens with Angular Material, no idea why sorry)\r\n2. if I moved the actual content inside the layout component instead of passing it from `app.component.html`\r\n3. remove `provideClientHydration()`\r\n\r\n## 🔬 Minimal Reproduction\r\nhttps://github.com/robertIsaac/hydration-problem\r\n\r\n## 🔥 Exception or Error\r\n\r\nNA\r\n\r\n## 🌍 Your Environment\r\n\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 16.0.0\r\nNode: 16.18.1\r\nPackage Manager: npm 8.19.2\r\nOS: win32 x64\r\n\r\nAngular: 16.0.0\r\n... animations, cdk, cli, common, compiler, compiler-cli, core\r\n... forms, material, platform-browser, platform-browser-dynamic\r\n... platform-server, router\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.1600.0\r\n@angular-devkit/build-angular 16.0.0\r\n@angular-devkit/core 16.0.0\r\n@angular-devkit/schematics 16.0.0\r\n@nguniversal/builders 16.0.0\r\n@nguniversal/express-engine 16.0.0\r\n@schematics/angular 16.0.0\r\nrxjs 7.8.1\r\ntypescript 5.0.4\r\n\u003c/code>\u003c/pre>\r\n","author":{"url":"https://github.com/robertIsaac","@type":"Person","name":"robertIsaac"},"datePublished":"2023-05-05T21:44:26Z","url":"https://github.com/angular/angular/issues/50175"}
| 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:4a257124-dd19-42b9-443b-5cd7a4051f51 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E20:2C3566:197E483:2197964:6B013FC4 |
| html-safe-nonce | 48678f176587110178897dc8ddd0ed860b20ce286564043af76c39c9d6ddea43 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTIwOjJDMzU2NjoxOTdFNDgzOjIxOTc5NjQ6NkIwMTNGQzQiLCJ2aXNpdG9yX2lkIjoiODM4NjYwMjI3MzU0Mjg0ODQ1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6e88c64243790e05515da4fd61d151eb5a3fe23fe75fe810412d6f826a8a0618 |
| hovercard-subject-tag | issue:1698537789 |
| 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/50175/issue_layout |
| twitter:image | https://opengraph.githubassets.com/04fbd53184e0c7c5f446453f37938244ec156a3bab909694f0cbe5b1267d53ae/angular/angular/issues/50175 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/04fbd53184e0c7c5f446453f37938244ec156a3bab909694f0cbe5b1267d53ae/angular/angular/issues/50175 |
| og:image:alt | 🐞 Bug report What modules are related to this issue? builders common express-engine Is this a regression? no Description when enabling hydration and passing content with ng-content, the ng-content ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | robertIsaac |
| 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