@docomodigital/js-browser
v3.0.2
Published
JsBrowser provides you an alternative method to manage previous and current page changements.
Downloads
3
Readme
js-browser
Provides you an alternative method to manage previous and current page changements.
Is particularly used to get query params as object and to get the previous page in order to implement an easy and basic history in your routing.
Usage
import { Browser } from 'js-browser';
// Get previous page
const prevPage = Browser.getPrevPage();
// Set browser new state
Browser.shiftPage('/home');
// Get query params in your url
const queryParams = Browser.getQueryParams();
Installation
NPM
npm install --save @docomodigital/js-browser
Documentation
To read documentation, go to: