Title: default inputSignal value is not used when withComponentInputBinding is activated · Issue #61676 · angular/angular · GitHub
Open Graph Title: default inputSignal value is not used when withComponentInputBinding is activated · Issue #61676 · angular/angular
X Title: default inputSignal value is not used when withComponentInputBinding is activated · Issue #61676 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description When I use withComponentInputBinding with a component which has a default input value, I expect that if the input is not defined is the ro...
Open Graph Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description When I use withComponentInputBinding with a component which has a default input value, I expect th...
X Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description When I use withComponentInputBinding with a component which has a default input value, I expect th...
Opengraph URL: https://github.com/angular/angular/issues/61676
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"default inputSignal value is not used when withComponentInputBinding is activated","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nrouter\n\n### Is this a regression?\n\nNo\n\n### Description\n\nWhen I use withComponentInputBinding with a component which has a default input value, I expect that if the input is not defined is the route data then the default input value is kept.\n\nActually, If a component has an input with a default value and this input has no correspondance into route data then the result will be undefined. Not my default value.\n\nwithComponentInputBinding is here to make more reusable components. So I should be able to defined default input values.\n\nIn my given example : \n\nI have a route with my component and a route data defined for my input -> OK the value from route is used.\nI have an other route with my component and no route data defined for my input -> KO value is undefined not my default value.\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://stackblitz.com/edit/mxxufqec-w8znnn3t?file=package.json\n\n### Please provide the exception or error you saw\n\n```true\n\n```\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI: 19.0.7\nNode: 20.19.1\nPackage Manager: npm 10.8.2\nOS: linux x64\n\nAngular: 19.1.0\n... animations, common, compiler, compiler-cli, core, forms\n... platform-browser, platform-browser-dynamic, router\n\nPackage Version\n---------------------------------------------------------\n@angular-devkit/architect 0.1900.7\n@angular-devkit/build-angular 19.0.7\n@angular-devkit/core 19.0.7\n@angular-devkit/schematics 19.0.7\n@angular/cli 19.0.7\n@schematics/angular 19.0.7\nrxjs 7.8.1\ntypescript 5.6.3\nzone.js 0.15.0\n```\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/GaetanRdn","@type":"Person","name":"GaetanRdn"},"datePublished":"2025-05-26T08:13:08Z","url":"https://github.com/angular/angular/issues/61676"}
| 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:2ac59ab3-6a32-e6c1-5a0f-875f67e984f0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A3E4:DAF5F:B51300:E969B1:6B063906 |
| html-safe-nonce | 92a800a06acca254bb0241adf0f5a5cda9a7a849d9ba48b192fc4ecfba9e0c9d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0U0OkRBRjVGOkI1MTMwMDpFOTY5QjE6NkIwNjM5MDYiLCJ2aXNpdG9yX2lkIjoiODYwNDE5NDMzMDg3NTE0ODg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f732723ad1f6f8cc2683c80165f58454b91ac3d51a208257a6350f029d4ff433 |
| hovercard-subject-tag | issue:3090394005 |
| 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/61676/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7de155e6f75b18168a14c46774caf2f5935748f8278197ce1e6c636223e16121/angular/angular/issues/61676 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7de155e6f75b18168a14c46774caf2f5935748f8278197ce1e6c636223e16121/angular/angular/issues/61676 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description When I use withComponentInputBinding with a component which has a default input value, I expect th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GaetanRdn |
| hostname | github.com |
| expected-hostname | github.com |
| None | dcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297 |
| 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 | 0f38f5735226749ec5e08a8649dce4cb2613d9ad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width