Skip to content

Commit

Permalink
test(router): Update golden test to be standalone
Browse files Browse the repository at this point in the history
This update demonstrates a powerful difference between the current
`RouterModule.forRoot(...)` and the new `provideRouter` function:
tree-shakability. The new opt-in API of the `provideRouter` function for
features rather than using `ExtraOptions` to control the providers via a
switch enables this. In truth, we could extend this
ability to the `RouterModule` as well with something like
`forRootWithFeatures` or by updating the existing `forRoot` to include
the feature array.
  • Loading branch information
atscott committed Aug 1, 2022
1 parent 8aa6636 commit ab4fcbc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 168 deletions.

0 comments on commit ab4fcbc

Please sign in to comment.