kmalakoff/knockback

RequireJS

Closed this issue · 1 comments

Hi

Is knockback requireJS compatible out of the box? Are there any minimal working examples using requireJS knockback and knockback-navigators. I've been trying to make it work following this example: https://github.com/krakatoa/knockback-requirejs-example but it seams to be outdated (and it uses a wrapper).

Thanks!

It's a simple thing...just as you would expect...

require.config({
paths: {
'underscore': "underscore",
'backbone': "backbone",
'knockout': "knockout",
'knockback': "knockback"
}
});

require(['knockback'], function(kb) {
    console.dir(kb);
});

You can see: https://github.com/kmalakoff/knockback/tree/master/test/issues/issue40