koco-demo-page

1.3.0 • Public • Published

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

/koco-demo-page/

    Package Sidebar

    Install

    npm i koco-demo-page

    Weekly Downloads

    2

    Version

    1.3.0

    License

    MIT

    Last publish

    Collaborators

    • fcharest
    • rcmax