knockout

A 25-post collection

Compare Durandal to Angular, Not Knockout to Angular

Odds are you have been asked recently: “How does KnockoutJS compare to AngularJS?” There seems to be a lot of attempts to compare these two awesome libraries. We can certainly compare them, but will this really get you where you want to go? If you hear this question, ask “why” the person is asking it. If s/he wants a JavaScript/HTML based presentation framework then suggest that you compare Durandal to Angular. Why? Because Knockout is at heart a data-binding library, while Angular and Durandal are presentation frameworks. This is a hugely important concept to grasp, so let’s break down what’s at the heart of these questions and how Knockout, Durandal...


Structuring an Angular Project

We can build amazing SPA and HTML5 applications when choosing a powerful framework like Angular, Durandal, Ember, or Backbone. And while I love my personal favorites Angular and Durandal, it's not all magic. There is a learning curve and some things are helpful to decide up front. Once you choose your presentation framework, you should decide how you will organize the structure of your project. UPDATE: Learn how you can refactor your Angular structure for growth in my "sequel" post. In this post I'll show one way how I organize my Angular based projects and discuss why I like it. Before you ask "Why didn't he mention Knockout.js? Doesn'...


Knockout and JavaScript Tips

Building JavaScript apps or SPA’s with Knockout and interested in taking those skills up a notch? Then check out my new course Essential Knockout and JavaScript Tips, at Pluralsight. By the end of this course you will learn more about how Knockout works, various debugging techniques for declarative HTML and JavaScript view models, exploring your data context and observables, the many uses of custom bindings, the power of subscriptions, custom functions and performance tuning. What's in the Course? This Essential Knockout and JavaScript Tips course helps explain how to fine tune your Knockout based JavaScript apps. The course is divided into “Rounds” (a Knockout and boxing pun) with each round focusing on enhancing specific...


Free Video: SPA Primer with Durandal, Knockout and Breeze

I had the fortune to join a cast of heavy hitters at the free DotNetConf live event. My session was a 50 minute primer on SPA that tells a story about what a SPA can do. Javier Lozano and Scott Hanselman hosted the free event through a Google Hangout, which turned out pretty cool. They have now made the videos freely available. You can see my video below. If you are looking to evaluate if SPA is right for you, I think you’ll enjoy this video. If you want more detail on “how” to build a SPA, you can check out my full length courses at Pluralsight. Learn more about Durandal and these topics from my...


Knockout Lite Tools (KoLite 1.1.0)

Add commanding, change tracking, and activity indicators to your web application when using Knockout and KoLite. KoLite (now v 1.1.0) contains a set of helpers to aid in creating data bound applications using JavaScript and Knockout. KoLite was spawned by some ideas from Hans Fjällemark and I when working on some Knockout applications. The key features are: async command binding command binding activity indicator change detection Get KoLite You can grab the KoLite library on github or grab KoLite on NuGet. New in KoLite 1.1.0 Command binding handler supports binding to native Knockout bindings as well as the Knockout event binding for DOM events. Event object get passed on to callback on event bindings,...