Skip to content

Commit

Permalink
docs(router): Fix small grammatical errors (#59568)
Browse files Browse the repository at this point in the history
Improves readability.
PR Close #59568
  • Loading branch information
mattjanssen authored and AndrewKushnir committed Jan 17, 2025
1 parent 5497102 commit 70c4b83
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/router/src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ import type {UrlSegment, UrlSegmentGroup, UrlTree} from './url_tree';
/**
* How to handle a navigation request to the current URL. One of:
*
* - `'ignore'` : The router ignores the request it is the same as the current state.
* - `'ignore'` : The router ignores the request if it is the same as the current state.
* - `'reload'` : The router processes the URL even if it is not different from the current state.
* One example of when you might want this option is if a `canMatch` guard depends on
* One example of when you might want to use this option is if a `canMatch` guard depends on the
* application state and initially rejects navigation to a route. After fixing the state, you want
* to re-navigate to the same URL so the route with the `canMatch` guard can activate.
* to re-navigate to the same URL so that the route with the `canMatch` guard can activate.
*
* Note that this only configures whether the Route reprocesses the URL and triggers related
* action and events like redirects, guards, and resolvers. By default, the router re-uses a
* Note that this only configures whether or not the Route reprocesses the URL and triggers related
* actions and events like redirects, guards, and resolvers. By default, the router re-uses a
* component instance when it re-navigates to the same component type without visiting a different
* component first. This behavior is configured by the `RouteReuseStrategy`. In order to reload
* routed components on same url navigation, you need to set `onSameUrlNavigation` to `'reload'`
* _and_ provide a `RouteReuseStrategy` which returns `false` for `shouldReuseRoute`. Additionally,
* resolvers and most guards for routes do not run unless the path or path params changed
* resolvers and most guards for routes do not run unless the path or path params have changed
* (configured by `runGuardsAndResolvers`).
*
* @publicApi
Expand All @@ -47,7 +47,7 @@ export type OnSameUrlNavigation = 'reload' | 'ignore';

/**
* The `InjectionToken` and `@Injectable` classes for guards and resolvers are deprecated in favor
* of plain JavaScript functions instead.. Dependency injection can still be achieved using the
* of plain JavaScript functions instead. Dependency injection can still be achieved using the
* [`inject`](api/core/inject) function from `@angular/core` and an injectable class can be used as
* a functional guard using [`inject`](api/core/inject): `canActivate: [() =>
* inject(myGuard).canActivate()]`.
Expand Down

0 comments on commit 70c4b83

Please sign in to comment.