Skip to content

Commit 5879f31

Browse files
SkyZeroZxleonsenft
authored andcommitted
docs: Update docs with ComponentInputBindingOptions
1 parent 1782114 commit 5879f31

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

adev/src/content/guide/routing/common-router-tasks.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,24 @@ internalId = linkedSignal(() => this.id() ?? getDefaultId());
5757
</docs-workflow>
5858

5959
NOTE: You can bind all route data with key, value pairs to component inputs: static or resolved route data, path parameters, matrix parameters, and query parameters.
60+
61+
### Disable query parameter binding
62+
63+
Use `ComponentInputBindingOptions` to disable query parameter binding if you manage query parameters separately:
64+
65+
```ts
66+
provideRouter(appRoutes, withComponentInputBinding({queryParams: false}));
67+
```
68+
69+
### Inherit parent route data
70+
6071
If you want to use the parent components route info you will need to set the router `paramsInheritanceStrategy` option:
61-
`withRouterConfig({paramsInheritanceStrategy: 'always'})` . See [router configuration options](guide/routing/customizing-route-behavior#router-configuration-options) for details on other available settings.
72+
73+
```ts
74+
withRouterConfig({paramsInheritanceStrategy: 'always'});
75+
```
76+
77+
See [router configuration options](guide/routing/customizing-route-behavior#router-configuration-options) for details on other available settings.
6278

6379
## Displaying a 404 page
6480

0 commit comments

Comments
 (0)