1.1.0 • Published 5 years ago
ui-router-history v1.1.0
UI-Router History
Adds back button functionality to UI-Router.
Setup
Angular
npm install ui-router-history --save
import { HistoryPlugin } from 'ui-router-history';
...
imports: [
UIRouterModule.forRoot({
config: (router) => {
router.plugin(HistoryPlugin);
},
}),
]
...
Usage
Navigate to history.back
state and you will be redirected to previous state.
Params are also saved, and default history size is 200 entries.