1.0.0 • Published 8 years ago
lmat.ko.multimodels v1.0.0
Knockout-MultiModels
Plugin for Knockout JS library which allows to use few view models for single view.
Usage
Just use ko.attach("", viewModel) and ko.detach("") methods instead of ko.applyBindings().
To assign HTML element with view model use data-model attribute with name of view model.
Attaching view model
Detaching view model
HTML
Dependencies
- Jquery 1.7.1+
- Livequery 1.1.1+
- Knockout JS 2.1.0+
Live demo
Please, use examples/knockout.multimodels.htm to see live demo.
Links:
License: MIT http://www.opensource.org/licenses/mit-license.php
1.0.0
8 years ago