Title: disableOptimizedSrcset from NgOptimizedImage is not working with [srcset] attribute binding · Issue #49335 · angular/angular · GitHub
Open Graph Title: disableOptimizedSrcset from NgOptimizedImage is not working with [srcset] attribute binding · Issue #49335 · angular/angular
X Title: disableOptimizedSrcset from NgOptimizedImage is not working with [srcset] attribute binding · Issue #49335 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? common Is this a regression? No Description We just added new feature to our project NgOptimizedImage. But as we are using firebase storage for images, our links are hashed, so there...
Open Graph Description: Which @angular/* package(s) are the source of the bug? common Is this a regression? No Description We just added new feature to our project NgOptimizedImage. But as we are using firebase storage fo...
X Description: Which @angular/* package(s) are the source of the bug? common Is this a regression? No Description We just added new feature to our project NgOptimizedImage. But as we are using firebase storage fo...
Opengraph URL: https://github.com/angular/angular/issues/49335
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"disableOptimizedSrcset from NgOptimizedImage is not working with [srcset] attribute binding","articleBody":"### Which @angular/* package(s) are the source of the bug?\r\n\r\ncommon\r\n\r\n### Is this a regression?\r\n\r\nNo\r\n\r\n### Description\r\n\r\nWe just added new feature to our project `NgOptimizedImage`. But as we are using firebase storage for images, our links are hashed, so there are no way to construct link with `ImageLoaderConfig`. \r\n\r\n`disableOptimizedSrcset` is not working with `srcset` attribute binding. \r\n\r\nExample below is not working. `srcset` is empty and not present in HTML\r\n`\u003cimg width=100 disableOptimizedSrcset height=100 [ngSrc]=\"imageUrl\" [srcset]=\"image2Url + ' 2x'\"/>`\r\n\r\nAs workaround, we use [attr.srcset] and it works as expected\r\n`\u003cimg width=100 height=100 [ngSrc]=\"imageUrl\" [attr.srcset]=\"image2Url + ' 2x'\"/>`\r\nIt works fine if no attribute binding is present\r\n\r\n### Please provide a link to a minimal reproduction of the bug\r\n\r\nhttps://stackblitz.com/edit/angular-zssdn7?file=src/main.ts\r\n\r\n### Please provide the exception or error you saw\r\n\r\n```true\r\nNo errors\r\n```\r\n\r\n\r\n### Please provide the environment you discovered this bug in (run `ng version`)\r\n\r\n```true\r\nAngular CLI: 15.0.4\r\nNode: 16.16.0\r\nPackage Manager: npm 8.11.0\r\nOS: darwin arm64\r\n\r\nAngular: 15.0.4\r\n... animations, cli, 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.1500.4\r\n@angular-devkit/build-angular 15.0.4\r\n@angular-devkit/core 15.0.0\r\n@angular-devkit/schematics 14.2.9\r\n@angular/cdk 15.0.3\r\n@angular/fire 7.5.0\r\n@angular/google-maps 15.0.3\r\n@schematics/angular 14.1.2\r\nrxjs 7.5.5\r\ntypescript 4.8.4\r\n```\r\n\r\n\r\n### Anything else?\r\n\r\n_No response_","author":{"url":"https://github.com/georgelviv","@type":"Person","name":"georgelviv"},"datePublished":"2023-03-06T13:23:01Z","url":"https://github.com/angular/angular/issues/49335"}
| 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:6120f532-3640-db6a-1a55-c51cbae2f3c1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A504:1A8E1F:11A8D1:195C48:6AFDC25E |
| html-safe-nonce | 9bec4745d382d21d7f001c93b922fc0e0f920a0c07eba0097a37c3bd48419875 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTA0OjFBOEUxRjoxMUE4RDE6MTk1QzQ4OjZBRkRDMjVFIiwidmlzaXRvcl9pZCI6IjQ4MjE5NzgxMTE2Mzk2NjcyOTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ab167f0a41a6266699d86c0b11ea6326cee89769394c2e32f5d19f5b9b66e9ac |
| hovercard-subject-tag | issue:1611420609 |
| 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/49335/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4de8601edbd06f03eae6b782108cb02c79481a8a66c613880fb3c15d7d0b55cd/angular/angular/issues/49335 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4de8601edbd06f03eae6b782108cb02c79481a8a66c613880fb3c15d7d0b55cd/angular/angular/issues/49335 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? common Is this a regression? No Description We just added new feature to our project NgOptimizedImage. But as we are using firebase storage fo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | georgelviv |
| hostname | github.com |
| expected-hostname | github.com |
| None | 35c6bf57da1370dc64866160540c0ee9f825f291935b3bf6ec5492b00e35f3a6 |
| 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 | ab48c73a2978548773f5f24717ed9e58508befdb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width