Skip to content

Commit 101c16f

Browse files
authored
docs: describe route data change in changelog (#300)
# Documentation - Describe route data change in changelog
1 parent 774fad4 commit 101c16f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
### **BREAKING CHANGES**
1212

13+
#### Remove symbol keys from Route data
14+
15+
To keep route data serializable, we have removed support for the Angular Router's `Data` type's symbol index in `MinimalActivatedRouteSnapshot#data`. In particular, this is done to remove the `Symbol(RouteTitle)` entry added by the Angular Router for internal use. Use our `MinimalRouteData` type instead of `Data` from `@angular/router` for route data.
16+
1317
#### Provider factories return provider arrays
1418

1519
The `provideGlobalRouterStore` and `provideLocalRouterStore` functions now return an array of providers (`Provider[]`) instead of a single provider (`Provider`). No changes required in your `providers` metadata, for example the following usage remains the same.

0 commit comments

Comments
 (0)