Title: Router with inputs should not reset default input values when parameter is missing · Issue #70269 · angular/angular · GitHub
Open Graph Title: Router with inputs should not reset default input values when parameter is missing · Issue #70269 · angular/angular
X Title: Router with inputs should not reset default input values when parameter is missing · Issue #70269 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description When using routes with inputs via withComponentInputBinding() I expect it to not call all route inputs with undefined if the query param i...
Open Graph Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description When using routes with inputs via withComponentInputBinding() I expect it to not call all route in...
X Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description When using routes with inputs via withComponentInputBinding() I expect it to not call all route in...
Opengraph URL: https://github.com/angular/angular/issues/70269
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Router with inputs should not reset default input values when parameter is missing","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 using routes with inputs via `withComponentInputBinding()` I expect it to not call all route inputs with `undefined` if the query param is missing, instead I expect it to not call it at all so I can set default value with `input(value)`.\n\nA use case example would be a page with pagination, I want to set the default page to be 1 and have this route be accessible without explicit `?page=1` in the URL. I don't think we should be forced to use input transforms in that case, missing params should just be ignored, unless we, for example, use `input.required()`\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://stackblitz.com/edit/stackblitz-starters-r6uje1sb\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 : 22.1.4\nNode.js : 26.3.0\nPackage Manager : npm 11.16.0\nOperating System : win32 x64\n```\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/waterplea","@type":"Person","name":"waterplea"},"datePublished":"2026-08-19T08:28:07Z","url":"https://github.com/angular/angular/issues/70269"}
| 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:cc8dc0b6-a737-bf03-5f32-c46f61ae3821 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC8E:D0B9B:CB70CB:114A2B3:6B064C31 |
| html-safe-nonce | 07174d17f676f1f246f2f9727516d607051988f694d2624874fcf0ef5ecb3cfd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzhFOkQwQjlCOkNCNzBDQjoxMTRBMkIzOjZCMDY0QzMxIiwidmlzaXRvcl9pZCI6IjIzMTIyODQxNjA1NzgxNzgwOTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e8a5a6d72482624fd36c3e56520f1bbe04c4a1fae4dd3357ef347fb573c0447d |
| hovercard-subject-tag | issue:5190614042 |
| 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/70269/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f2fb1229da1d1a505f422b50b0dff1e6917d1c84396693313ceba132133ef0d9/angular/angular/issues/70269 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f2fb1229da1d1a505f422b50b0dff1e6917d1c84396693313ceba132133ef0d9/angular/angular/issues/70269 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description When using routes with inputs via withComponentInputBinding() I expect it to not call all route in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | waterplea |
| hostname | github.com |
| expected-hostname | github.com |
| None | 772b6997ca4daa0428dd49a25d76052e765555ae560fe9c88517eb828bbd861e |
| 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 | f1f9a08f7c769a37f1dfc18ad43d463c222a7eea |
| 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