@profiscience/knockout-contrib-router-middleware-progress-bar
v2.0.17
Published
[![Version][npm-version-shield]][npm] [![Dependency Status][david-dm-shield]][david-dm] [![Peer Dependency Status][david-dm-peer-shield]][david-dm-peer] [![Dev Dependency Status][david-dm-dev-shield]][david-dm-dev] [![Downloads][npm-stats-shield]][npm-sta
Downloads
28
Readme
router.middleware.progressBar
NOTE: This package is intended for consumption via the @profiscience/knockout-contrib metapackage
Displays a progress bar using [toprogress2][] during navigation. Accepts all toprogress2 options.
Usage
import {
Router,
createProgressBarMiddleware,
} from '@profiscience/knockout-contrib'
Router.use(
createProgressBarMiddleware({
color: '#fff',
height: '5px',
// ... any toprogress2 option
})
)