15.0.0 #338
LayZeeDK
announced in
Announcements
15.0.0
#338
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First stable release. No functional or API changes from 15.0.0-rc.2.
Features
Provide local or global router store using
provideLocalRouterStore
orprovideGlobalRouterStore
, respectivelyActivatedRoute
service's observable properties and follow the lifecycle of the component that provides it@ngrx/router-store
selectors and is never destroyedBoth local and global stores implement a common
RouterStore
API:currentRoute$
fragment$
queryParams$
routeData$
routeParams$
title$
url$
selectQueryParam(param: string)
selectRouteData(key: string)
selectRouteParam(param: string)
selectRouterEvents(...acceptedRouterEvents: RouterEvent[])
RouterStore
is also the injection symbol usable through constructor injection,inject
,TestBed.inject
, andInjector.get
. WhenRouterStore
is injected, it resolves to the closest provided local or global router store according to element and environment injectors.RouterStore
uses a serializable router state calledMinimalActivatedRouteSnapshot
. It uses additional strict, immutable types likeStrictQueryParams
,StrictRouteData´, and
StrictRouteParams`.This discussion was created from the release 15.0.0.
Beta Was this translation helpful? Give feedback.
All reactions