Knockout JavaScript

Knockout JavaScript or simply kojs, helps you creating dynamic JavaScript UIs using the Model-View-ViewModel (MVVM) pattern.

Don’t ignore this, because it will be a part of ASP.NET MVC4. 🙂

If you don’t know knockoutjs, you can start the interactive tutorials via http://learn.knockoutjs.com/.

<p>Teusje is: <span data-bind="text: someCoolText" /></p>
<p>Insert some cool text: <input data-bind:"value: someCoolText" /></p>
var viewModel = {
someCoolText: ko.observable("Funky")
};

ko.applyBindings(viewModel);

Have fun! 😉

[ source ] [ source2 ]

Advertisements

2 thoughts on “Knockout JavaScript

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s