ui-router-history
v1.1.0
Published
UI-Router History: Adds back button functionality to UI-Router
Readme
UI-Router History
Adds back button functionality to UI-Router.
Setup
Angular
npm install ui-router-history --saveimport { 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.
