Title: Cannot use *ngFor or *ngIf inside of
Open Graph Title: Cannot use *ngFor or *ngIf inside of
X Title: Cannot use *ngFor or *ngIf inside of
Description: Hello, and great library by the way! I've successfully created wrappers for my react components, but now I'm trying to generate a list of components with *ngFor which I can't seem to get working. If needed, I can make a plunker or other ...
Open Graph Description: Hello, and great library by the way! I've successfully created wrappers for my react components, but now I'm trying to generate a list of components with *ngFor which I can't seem to get working. I...
X Description: Hello, and great library by the way! I've successfully created wrappers for my react components, but now I'm trying to generate a list of components with *ngFor which I can't seem to ge...
Opengraph URL: https://github.com/microsoft/angular-react/issues/137
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot use *ngFor or *ngIf inside of \u003cng-content> inside of react components","articleBody":"Hello, and great library by the way! I've successfully created wrappers for my react components, but now I'm trying to generate a list of components with *ngFor which I can't seem to get working. If needed, I can make a plunker or other sample app; just let me know, thanks.\r\n\r\nExample from /angular-react/blob/master/apps/demo/src/app/app.component.html\r\n\r\nThis doesn't work:\r\n```html\r\n\u003cfab-pivot>\r\n \u003cfab-pivot-item *ngFor=\"let item of items\" headerText=\"item.name\">\r\n \u003cdiv>{{item.content}}\u003c/div>\r\n \u003c/fab-pivot-item>\r\n\u003c/fab-pivot>\r\n```\r\n\r\nThis doesn't work:\r\n```html\r\n\u003cfab-pivot>\r\n \u003cdiv *ngFor=\"let item of items\">\r\n \u003cfab-pivot-item headerText=\"item.name\"> \u003cdiv>{{item.content}}\u003c/div> \u003c/fab-pivot-item>\r\n \u003c/div>\r\n\u003c/fab-pivot>\r\n```\r\n\r\nThis works:\r\n```html\r\n\u003cfab-pivot>\r\n \u003cfab-pivot-item headerText=\"Tab 1\"> \u003cdiv>Tab 1's content\u003c/div> \u003c/fab-pivot-item>\r\n \u003cfab-pivot-item headerText=\"Tab 2\"> \u003cdiv>Tab 2's content\u003c/div> \u003c/fab-pivot-item>\r\n \u003cfab-pivot-item headerText=\"Tab 3\"> \u003cdiv>Tab 3's content\u003c/div> \u003c/fab-pivot-item>\r\n\u003c/fab-pivot>\r\n```","author":{"url":"https://github.com/MikaelLambert","@type":"Person","name":"MikaelLambert"},"datePublished":"2019-08-27T18:41:08Z","url":"https://github.com/microsoft/angular-react/issues/137"}
| 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:33562c4f-f063-7944-c498-5f7b43158a50 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B08C:3C21B:C930D3:10438A3:6B00F004 |
| html-safe-nonce | 3fed61f4a273a40183746c7547bb4cf34f4f0bf8f4b27bf584efcf3825f847ab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDhDOjNDMjFCOkM5MzBEMzoxMDQzOEEzOjZCMDBGMDA0IiwidmlzaXRvcl9pZCI6IjE3MjA2MTQ4NjAzNTk3OTA1OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 59d315037b1014db264f37f042eecf3efa6516eddafcbda54f0da30390dd2a10 |
| hovercard-subject-tag | issue:485970506 |
| 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/microsoft/angular-react/137/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4f8efd3edabc6b12f293e87c7aa41f4102903ce8ad68d085ad176f22c4e1df32/microsoft/angular-react/issues/137 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4f8efd3edabc6b12f293e87c7aa41f4102903ce8ad68d085ad176f22c4e1df32/microsoft/angular-react/issues/137 |
| og:image:alt | Hello, and great library by the way! I've successfully created wrappers for my react components, but now I'm trying to generate a list of components with *ngFor which I can't seem to get working. I... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MikaelLambert |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/angular-react git https://github.com/microsoft/angular-react.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 144321557 |
| octolytics-dimension-repository_nwo | microsoft/angular-react |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 144321557 |
| octolytics-dimension-repository_network_root_nwo | microsoft/angular-react |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width