knockout-bind-html
v1.1.0
Published
A custom binding for KnockoutJS that will dynamically present the specified HTML, like the standard binding, but will also process any new bindings that are included.
Downloads
2
Maintainers
Readme
knockout-bind-html
A custom binding for KnockoutJS that will dynamically present the specified HTML, like the standard binding, but will also process any new bindings that are included.
Installation
bower install knockout-bind-html
Include via a <script>
tag or an AMD style loader.
Usage
<div data-bind="bindHtml: clickable"><div>
var viewModel = {
this.clickable = ko.observable('Click Here: <a href="#" data-bind="click: action">Execute!</a>');
this.action = function() {
console.log('Action executed');
};
};