Building a Single Page Web Application with Knockout.js Tutorial: Templating | packtpub.com

3,121 views · Published 3 March 2014 · 2:27 · Indexed 31 October 2026

Channel: Packt · 2014 · Science & Technology

Watch on YouTube

Part of Building a Single Page Web Application with Knockout.js. For the full Course visit:
http://www.packtpub.com/building-single-page-web-application-with-knockoutjs/video

One of the most common and useful features of any framework for creating a single page application is templating. While there are many excellent templating libraries out there, Knockout templates integrate well with Knockout.js, allowing you to fully utilize all the other features of Knockout.js. 
• Create an array of people objects 
• Add a foreach binding to the markup to iterate over the array (inline templating) 
• Check if the template is used for each person in the array 

Find us on Facebook -- http://www.facebook.com/Packtvideo
Follow us on Twitter - http://www.twitter.com/packtvideo

More from this channel