knockout-contrib

:metal: KnockoutJS Goodies Monorepo

View the Project on GitHub Profiscience/knockout-contrib

router.middleware.progressBar

Version Dependency Status Peer Dependency Status Dev Dependency Status Downloads

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
  })
)