Skip to content

jQbrick/jqb-ko-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jqb-ko-component

Utility to register KnockoutJS components.

It works amazingly with PoliteJS/Workspace

var component = require('jqb-ko-component');
component.register(
    'component-name',
    require('./path/to/template.html'),
    require('./path/to/view-model')
);

so far the view model should be a Constructor function:

module.exports = function(params, info) {};

or a prototype object:

module.exports = {
    init: function(params, info) {}
};

About

KnockoutJS component registration utility

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published