Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A framework for building awesome knockout.js apps
JavaScript CSS
Branch: master
Failed to load latest commit information.
dist Fixed non amd local storage reference
docs Got pubsub working
examples Got pubsub working
lib Fixed non amd local storage reference
server Fixed the examples to use the new models and collections
test Got pubsub working in the viewModels
.gitignore
Gruntfile.js Working on some pretty massive updates to the model - not done, but t…
LICENSE Initial commit
README.md Added more docs
bower.json v0.0.6
ko-ninja.gif Added icon image
package.json Update package.json
server.js Made ko ninja work without amd

README.md

ko.ninja

A framework for building awesome knockout.js apps.

The idea behind ko.ninja is that knockout has amazing two way binding functionallity, but not a lot of conventions for how to write ViewModels, Models, Collections and such.

ko.ninja provides methods to create view models, models and collections in a clean and reusable fashion that provide some built in helpers.

Installation

ko.ninja can be used by downloading the dist/ko.ninja.min.js file or using bower:

bower install ko.ninja

ko.ninja is available as an AMD module, so just require it and you are good to go. Something like this will do just fine:

define(['ko.ninja'], function (ko) {
  ko.ViewModel.extend({
    ...
  });
});

If your project isn't using AMD, ko.ninja will also work as a non-AMD script like this:

<script src="bower_components/dist/ko.ninja.min.js"></script>
<script>
  ko.ViewModel.extend({
    ...
  });
</script>

Using ko.Ninja

Development

ko.ninja is built using grunt and bower. To run the build...

npm install && bower install

To run the tests...

grunt test
# or
grunt server # to run the tests in your browser at localhost:8003/qunit.html

There is also a built in server to run the provided examples...

grunt server # localhost:8003
Something went wrong with that request. Please try again.