Socket
Book a DemoInstallSign in
Socket

komvvm

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

komvvm

Knockout MVVM Extensions to help Knockout app development

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

knockout

FAQs

Package last updated on 26 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts