ko-component-router
Super-duper flexible component based router for developing wicked awesome single page apps with KnockoutJS
YOU ARE ON THE next
BRANCH
oh hai, a blog post on changes in ko-component-router@next, fancy that.
Installation
$ yarn add ko-component-router@next
...or...
$ npm install -S ko-component-router@next
Usage
app.js
const loading = ko Router Router kocomponent kocomponents kocomponents { return { } { } } // generators are also supported if you're a pioneer of sorts// function * loadingMiddleware(ctx) {// loading(true)// yield// loading(false)// } { // return promise for async middleware return $} { // if not passed in via `with` from Users.navigateToUser if !ctxuser return $ } ko
index.html