You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
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?
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?
The second sentence contradicts the interface declaration at https://angular.io/api/router/Route, which is:
pathMatch?: 'prefix' | 'full'
So, it's still a string type. How do you cast that to Route or Routes?
More specifically, if my existing definition of
routes
beginsthen 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
{ path: '', pathMatch: 'full', component: HomeComponent }
to a Route, but what does that have to do with being "no longer compatible with a string type"?
The text was updated successfully, but these errors were encountered: