René's URL Explorer Experiment


Title: fix(router): Only bind 'undefined' to components if input was previou… by atscott · Pull Request #68561 · angular/angular · GitHub

Open Graph Title: fix(router): Only bind 'undefined' to components if input was previou… by atscott · Pull Request #68561 · angular/angular

X Title: fix(router): Only bind 'undefined' to components if input was previou… by atscott · Pull Request #68561 · angular/angular

Description: …sly bound This updates Router input binding feature to only bind undefined to an input it it previously matched to some router information that no longer appears. Prior to this, Router would bind all inputs unconditionally, including those which did not have matching keys in the router params, data, or query params. The prior behavior was to prevent the scenario where something like queryParams was initially bound, and then its associated key got removed on subsequent navigations. Failing to bind undefined would have resulted in stale data. This update ensures the Router only binds undefined in the specific scenario where stale data was actually present. This change allows component inputs with initial values to retain their intial values if there is no matching key in the Router information. fixes #63835 and #52946 BREAKING CHANGE: The Router no longer binds undefined to inputs that do not have matching keys in the query parameters, data, or params. undefined is now only bound when the input previously did match Router information but no longer does. This prevents stale information from being retained in the component inputs.

Open Graph Description: …sly bound This updates Router input binding feature to only bind undefined to an input it it previously matched to some router information that no longer appears. Prior to this, Router would bind ...

X Description: …sly bound This updates Router input binding feature to only bind undefined to an input it it previously matched to some router information that no longer appears. Prior to this, Router would bind ...

Opengraph URL: https://github.com/angular/angular/pull/68561

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c4f6b7c1-3f16-0abd-1cce-58c832c730d2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDC22:1CA0E6:92913F:C49BB6:6B063974
html-safe-noncebaa42ae8dd4698a46bc16428c2c3dcbdb29a0225166d4891829ff10900cc5041
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzIyOjFDQTBFNjo5MjkxM0Y6QzQ5QkI2OjZCMDYzOTc0IiwidmlzaXRvcl9pZCI6IjI5NjM3MTcxMTQ2NzYyNjMyODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb2e0398497fa34186778fd337e6e6c69dcb8a6414703aea51d2b7cf6b33eccac
hovercard-subject-tagpull_request:3626986586
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/angular/angular/pull/68561/files
twitter:imagehttps://avatars.githubusercontent.com/u/479713?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/479713?s=400&v=4
og:image:alt…sly bound This updates Router input binding feature to only bind undefined to an input it it previously matched to some router information that no longer appears. Prior to this, Router would bind ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonedcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0f38f5735226749ec5e08a8649dce4cb2613d9ad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angular/pull/68561/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fpull%2F68561%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fpull%2F68561%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/pull/68561/files
Reloadhttps://github.com/angular/angular/pull/68561/files
Reloadhttps://github.com/angular/angular/pull/68561/files
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues831 (831)https://github.com/angular/angular/issues
Pull requests122 (122)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fangular%2Fangular%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fangular%2Fangular%2Fissues%2Fnew%2Fchoose
atscotthttps://github.com/atscott
angular:mainhttps://github.com/angular/angular/tree/main
atscott:updateDefaultRouterBindinghttps://github.com/atscott/angular/tree/updateDefaultRouterBinding
Conversation 2 https://github.com/angular/angular/pull/68561
Commits 1 https://github.com/angular/angular/pull/68561/commits
Checks 20 https://github.com/angular/angular/pull/68561/checks
Files changed 4 https://github.com/angular/angular/pull/68561/files
fix(router): Only bind 'undefined' to components if input was previou… https://github.com/angular/angular/pull/68561/files#top
Show all changes 1 commit https://github.com/angular/angular/pull/68561/files
6c567c2 fix(router): Only bind 'undefined' to components if input was previou… atscott May 4, 2026 https://github.com/angular/angular/pull/68561/commits/6c567c26781a93318e94be815ac16903c40020a1
Clear filters https://github.com/angular/angular/pull/68561/files
Please reload this pagehttps://github.com/angular/angular/pull/68561/files
Please reload this pagehttps://github.com/angular/angular/pull/68561/files
common-router-tasks.md https://github.com/angular/angular/pull/68561/files#diff-e3a5e2c90e9ba04313a45e301132451fa9f38a290b8db1f0a2ea8077aa2c3043
router_outlet.ts https://github.com/angular/angular/pull/68561/files#diff-793a2682585322da9d2884ee7d90dd69b7e7f9c1b571a351f2145f9c34155620
provide_router.ts https://github.com/angular/angular/pull/68561/files#diff-b60f579b6666c0ed6d78acd8ef5c55cfc7b599c9011d5a34fbb2d5dd291da819
router_outlet.spec.ts https://github.com/angular/angular/pull/68561/files#diff-d2f45f82412c9cb89cad34b0f667f54867f90e6c1c2fc1de95cf6ecc827a0599
adev/src/content/guide/routing/common-router-tasks.mdhttps://github.com/angular/angular/pull/68561/files#diff-e3a5e2c90e9ba04313a45e301132451fa9f38a290b8db1f0a2ea8077aa2c3043
View file https://github.com/angular/angular/blob/6c567c26781a93318e94be815ac16903c40020a1/adev/src/content/guide/routing/common-router-tasks.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular/pull/68561/{{ revealButtonHref }}
https://github.com/angular/angular/pull/68561/files#diff-e3a5e2c90e9ba04313a45e301132451fa9f38a290b8db1f0a2ea8077aa2c3043
https://github.com/angular/angular/pull/68561/files#diff-e3a5e2c90e9ba04313a45e301132451fa9f38a290b8db1f0a2ea8077aa2c3043
packages/router/src/directives/router_outlet.tshttps://github.com/angular/angular/pull/68561/files#diff-793a2682585322da9d2884ee7d90dd69b7e7f9c1b571a351f2145f9c34155620
View file https://github.com/angular/angular/blob/6c567c26781a93318e94be815ac16903c40020a1/packages/router/src/directives/router_outlet.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular/pull/68561/{{ revealButtonHref }}
https://github.com/angular/angular/pull/68561/files#diff-793a2682585322da9d2884ee7d90dd69b7e7f9c1b571a351f2145f9c34155620
https://github.com/angular/angular/pull/68561/files#diff-793a2682585322da9d2884ee7d90dd69b7e7f9c1b571a351f2145f9c34155620
https://github.com/angular/angular/pull/68561/files#diff-793a2682585322da9d2884ee7d90dd69b7e7f9c1b571a351f2145f9c34155620
https://github.com/angular/angular/pull/68561/files#diff-793a2682585322da9d2884ee7d90dd69b7e7f9c1b571a351f2145f9c34155620
packages/router/src/provide_router.tshttps://github.com/angular/angular/pull/68561/files#diff-b60f579b6666c0ed6d78acd8ef5c55cfc7b599c9011d5a34fbb2d5dd291da819
View file https://github.com/angular/angular/blob/6c567c26781a93318e94be815ac16903c40020a1/packages/router/src/provide_router.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular/pull/68561/{{ revealButtonHref }}
https://github.com/angular/angular/pull/68561/files#diff-b60f579b6666c0ed6d78acd8ef5c55cfc7b599c9011d5a34fbb2d5dd291da819
https://github.com/angular/angular/pull/68561/files#diff-b60f579b6666c0ed6d78acd8ef5c55cfc7b599c9011d5a34fbb2d5dd291da819
packages/router/test/directives/router_outlet.spec.tshttps://github.com/angular/angular/pull/68561/files#diff-d2f45f82412c9cb89cad34b0f667f54867f90e6c1c2fc1de95cf6ecc827a0599
View file https://github.com/angular/angular/blob/6c567c26781a93318e94be815ac16903c40020a1/packages/router/test/directives/router_outlet.spec.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular/pull/68561/{{ revealButtonHref }}
https://github.com/angular/angular/pull/68561/files#diff-d2f45f82412c9cb89cad34b0f667f54867f90e6c1c2fc1de95cf6ecc827a0599
https://github.com/angular/angular/pull/68561/files#diff-d2f45f82412c9cb89cad34b0f667f54867f90e6c1c2fc1de95cf6ecc827a0599
Please reload this pagehttps://github.com/angular/angular/pull/68561/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.