Title: Unclear instruction about router pathMatch in ver 13 => 14 upgrade guide · Issue #212 · angular/angular-update-guide · GitHub
Open Graph Title: Unclear instruction about router pathMatch in ver 13 => 14 upgrade guide · Issue #212 · angular/angular-update-guide
X Title: Unclear instruction about router pathMatch in ver 13 => 14 upgrade guide · Issue #212 · angular/angular-update-guide
Description: One of the upgrade notes about moving from Angular 13 to 14 reads "If you are defining routes with pathMatch, you may have to cast it to Route or Routes explicitly. Route.pathMatch is no longer compatible with string type." I may have to...
Open Graph Description: One of the upgrade notes about moving from Angular 13 to 14 reads "If you are defining routes with pathMatch, you may have to cast it to Route or Routes explicitly. Route.pathMatch is no longer com...
X Description: One of the upgrade notes about moving from Angular 13 to 14 reads "If you are defining routes with pathMatch, you may have to cast it to Route or Routes explicitly. Route.pathMatch is no longe...
Opengraph URL: https://github.com/angular/angular-update-guide/issues/212
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unclear instruction about router pathMatch in ver 13 => 14 upgrade guide","articleBody":"One of the upgrade notes about moving from Angular 13 to 14 reads \"If you are defining routes with pathMatch, you may have to cast it to Route or Routes explicitly. Route.pathMatch is no longer compatible with string type.\" I may have to cast _what_?\r\n\r\nThe second sentence contradicts the interface declaration at https://angular.io/api/router/Route, which is:\r\n\r\n`pathMatch?: 'prefix' | 'full'`\r\n\r\nSo, it's still a string type. How do you cast that to Route or Routes?\r\n\r\nMore specifically, if my existing definition of `routes` begins\r\n```\r\nconst routes: Routes = [\r\n { path: '', pathMatch: 'full', component: HomeComponent },\r\n```\r\nthen what is the upgrade note telling me I have to do? Maybe \"it\" in the note refers to the route, and I need to cast\r\n\r\n` { path: '', pathMatch: 'full', component: HomeComponent }`\r\n\r\nto a Route, but what does that have to do with being \"no longer compatible with a string type\"?\r\n","author":{"url":"https://github.com/HarlanAtWork","@type":"Person","name":"HarlanAtWork"},"datePublished":"2023-01-06T21:42:31Z","url":"https://github.com/angular/angular-update-guide/issues/212"}
| 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:deedb23a-2f55-81c3-3e1a-72d73f33be81 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C834:291B58:7400203:92CD83A:6B036AD0 |
| html-safe-nonce | 47ca8739c9350146304f2d1790e41345768f71e2feed44f7a5c1773d246f9d55 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODM0OjI5MUI1ODo3NDAwMjAzOjkyQ0Q4M0E6NkIwMzZBRDAiLCJ2aXNpdG9yX2lkIjoiMzgzNTM3MzI0MTI3MTI4MjM4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 16b61881c63674abf271f23bfc83a07c99307419cfabc14ee329b4491706af6f |
| hovercard-subject-tag | issue:1523207383 |
| 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-update-guide/212/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a0460bde1bcf245936b0079bc30366e869869712bdfd908861e21404b0e141ad/angular/angular-update-guide/issues/212 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a0460bde1bcf245936b0079bc30366e869869712bdfd908861e21404b0e141ad/angular/angular-update-guide/issues/212 |
| og:image:alt | One of the upgrade notes about moving from Angular 13 to 14 reads "If you are defining routes with pathMatch, you may have to cast it to Route or Routes explicitly. Route.pathMatch is no longer com... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HarlanAtWork |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-update-guide git https://github.com/angular/angular-update-guide.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 84320616 |
| octolytics-dimension-repository_nwo | angular/angular-update-guide |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 84320616 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-update-guide |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| 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