koco-demo-page
v1.3.0
Published
This is a demo page component based the [koco generator](https://github.com/cbcrc/generator-koco) conventions. It has no purpose other than demoing an external bower component.
Downloads
2
Readme
Test page
This is a demo page component based the koco generator conventions. It has no purpose other than demoing an external bower component.
Installation
bower install koco-demo-page
Registering the page
This component could be registered as a normal knockout component, but if you are using the knockout-router it would be like this:
var router = require('knockout-router');
// Register the page.
router.registerPage('koco-demo', {
isBower: true
});
// Add a route that will answer to /test or /#/test if you are using hashes.
router.addRoute('test', {
title: 'Test page',
pageName: 'koco-demo' // must match the component's name registered earlier.
});