komvvm
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

# KoMvvm Build Status Bower version NuGet version

Knockout Utilities Extensions to simplify Knockout app development using MVVM Pattern.

Installation

Using Bower:

$ bower install komvvm --save

Using NuGet:

$ Install-Package KoMvvm

Usage

You could use komvvm in different context.

Browser (AMD from source)

Configure RequireJS.

requirejs.config({
    paths: {
        knockout: 'path/to/knockout',
        koutils: 'path/to/koutils',
        komvvm: 'path/to/komvvm'
    }
});

Load modules

define(["komvvm/commands"], function(commands) {
    var command = new commands.AsynCommand({
        canExecute: function(isExecuting) { return !isExecuting && /* ... */; },
        execute: function(complete) { 
            // ...
            complete();
        }
    });
});

Browser (with built file)

Include built script in your HTML file.

<script type="text/javascript" src="path/to/knockout.js"></script>
<script type="text/javascript" src="path/to/koutils.min.js"></script>
<script type="text/javascript" src="path/to/komvvm.min.js"></script>

Documentation

Documentation is hosted on Github Wiki.

Release History

0.1.0 Initial release 0.1.1 Fix issue in unsubscribe method when giving a callback which is not subscribed 0.1.2 Update typescript to version 1.1 0.1.3 * Update KoUtils to 1.0.1 * Remove underscore.js references * Update typescript to version 1.4

Dependents (0)

Package Sidebar

Install

npm i komvvm

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

23 kB

Total Files

11

Last publish

Collaborators

  • mluce