knockout-bind-html

1.1.0 • Public • Published

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');
    };
};

Package Sidebar

Install

npm i knockout-bind-html

Weekly Downloads

3

Version

1.1.0

License

ISC

Last publish

Collaborators

  • calvinwoo