ngx-route-history
v0.0.4
Published
An Angular service to automatically track route changes and store previous routes
Downloads
43
Maintainers
Readme
ngx-route-history
An Angular service to automatically track route changes and store previous routes
- Run
npm install ngx-route-historyin your Angular project - Import
RouteHistoryServiceinto the top level module importsRouterModule - Inject
RouteHistoryServicewherever you'd like to use it - The properties
currentRouteandpreviousRouteprovide, you guessed it, the current route url and the previous route url
