Skip to content

Commit

Permalink
docs: describe route data change in changelog (#300)
Browse files Browse the repository at this point in the history
# Documentation
- Describe route data change in changelog
  • Loading branch information
LayZeeDK authored Dec 19, 2022
1 parent 774fad4 commit 101c16f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

### **BREAKING CHANGES**

#### Remove symbol keys from Route data

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.

#### Provider factories return provider arrays

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.
Expand Down

0 comments on commit 101c16f

Please sign in to comment.