Knockout/Browserify base app - MVVM with an event layer.
g5-knockout is an app/module scaffold based on a tried and proven
application architecture and solid development patterns.
Install the package and use it as a scaffold for your app or module.
npm install g5-knockout
Server running on http://localhost:9966 with auto builds, [Ctrl+C] to kill server
npm run start-dev
npm run build
let demoApp =;demoApp;
Elementunique element to bind Knockout to
Numberrefresh rate (milliseconds)
Stringlocalization identification (en/es)
Stringpath to data file
instantiates viewModel, model, and applies bindings to main container
demoApp;demoApp; // single instance allowed, second call to method is ignored
toggles visibility of main container
demoAppdisplayfalse; // main container is hiddendemoAppdisplaytrue; // main container is visible
detaches all events
attaches all events
removes container element and destroys instance
new- constructors can be called with or without
npm run startwill run a single build and start the server, if you want auto builds run
npm run start-dev
Copyright (c) 2015, Greg Babula firstname.lastname@example.org
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.