Title: ngFor does not work in prod build while creating dynamic component from string · Issue #47160 · angular/angular · GitHub
Open Graph Title: ngFor does not work in prod build while creating dynamic component from string · Issue #47160 · angular/angular
X Title: ngFor does not work in prod build while creating dynamic component from string · Issue #47160 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? common Is this a regression? No Description I am trying to do a proof of concept for rendering components dynamically while basic Angular directives - ngFor, ngIf, etc. String: ' Open Graph Description: Which @angular/* package(s) are the source of the bug? common Is this a regression? No Description I am trying to do a proof of concept for rendering components dynamically while basic Angular dire...
X Description: Which @angular/* package(s) are the source of the bug? common Is this a regression? No Description I am trying to do a proof of concept for rendering components dynamically while basic Angular dire...
Opengraph URL: https://github.com/angular/angular/issues/47160
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ngFor does not work in prod build while creating dynamic component from string ","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\ncommon\n\n### Is this a regression?\n\nNo\n\n### Description\n\nI am trying to do a proof of concept for rendering components dynamically while basic Angular directives - ngFor, ngIf, etc.\r\nString:\r\n`'\u003cdiv>Hello world: {{data.some}} {{getX()}} \u003cdiv *ngFor=\"let i of [1,2,3,4,5]\">\u003cspan (click)=\"clickMe(i)\">{{i}}\u003c/span>\u003c/div>'`\r\nI had referred to the discussion on issue - https://github.com/angular/angular/issues/44660 and it works dev build. For prod build, I see there are no errors during build or in the console tab, but ngFor does not work.\r\n\r\nDev build:\r\n\r\n\r\nProd build:\r\n\r\n\r\n\r\n\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://github.com/phalgunv/Angular-Dynamic-Component-From-String\n\n### Please provide the exception or error you saw\n\n_No response_\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI: 12.2.18\r\nNode: 14.18.0\r\nPackage Manager: npm 6.14.15\r\nOS: win32 x64\r\n\r\nAngular: 12.2.16\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.1202.18\r\n@angular-devkit/build-angular 12.2.18\r\n@angular-devkit/core 12.2.18\r\n@angular-devkit/schematics 12.2.18\r\n@angular/cli 12.2.18\r\n@schematics/angular 12.2.18\r\nrxjs 6.6.7\r\ntypescript 4.3.5\n```\n\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/phalgunv","@type":"Person","name":"phalgunv"},"datePublished":"2022-08-16T02:32:44Z","url":"https://github.com/angular/angular/issues/47160"}
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:1839237d-04ab-dda5-f43f-3120ae24e818 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id B25C:1F7384:11938F9:17418EA:6B0114CA html-safe-nonce ea5659a33b6a0961a9d93af9e39566a92198befdb56f6152a29e22ca4285d9e6 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjVDOjFGNzM4NDoxMTkzOEY5OjE3NDE4RUE6NkIwMTE0Q0EiLCJ2aXNpdG9yX2lkIjoiMTY3MzEwMzEwNzQ5NzcyNzE3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 visitor-hmac 5670cbc763f1a70cc4219bb7854bc3395bd6ad0a2a3dea4b23f1754cdfb0b78b hovercard-subject-tag issue:1339730971 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/47160/issue_layout twitter:image https://opengraph.githubassets.com/1731bec4d52a175effb57972eac59436f9b6b1e51c8e0c885b50e664f3656584/angular/angular/issues/47160 twitter:card summary_large_image og:image https://opengraph.githubassets.com/1731bec4d52a175effb57972eac59436f9b6b1e51c8e0c885b50e664f3656584/angular/angular/issues/47160 og:image:alt Which @angular/* package(s) are the source of the bug? common Is this a regression? No Description I am trying to do a proof of concept for rendering components dynamically while basic Angular dire... og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username phalgunv hostname github.com expected-hostname github.com None cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 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 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
URLs of crawlers that visited me.