• Knockout:Refactor
 

Knockout:Refactor

If you buy 5 or more, you get an automatic 20% off


Pin It

Buy together and save!

- You save !


In this single-episode production we're joined by Ryan Niemeyer, a core maintainer on the KnockoutJS project, who is going to help us refactor the code for the Knockout Cart that we put together for a previous episode here at Tekpub. The cart works well for us - it powers our Gifts and Groups page - but it could be cleaned up a bit to be a bit more "idiomatic" in the Knockout way. If you work with Knockout, this production is a must-watch.


 


Preview

The Knockout Cart

Ryan and Rob dive into the knockout-cart code and refactor some of the "not-so-idiomatic" Knockout Code.

Code

The code for this project is up at our Github repo

Happy People