Day 1: Building Objects and Synchronizing Changes
In the first day of our CanJS journey, we’ll learn how can.Construct helps with creating hierarchies with inheritance. This is useful in itself but is also important to know because the other parts of CanJS build on can.Construct.
Next, we’ll discover can.Observe, an extremely useful part of CanJS that triggers events when changes occur. This helps with keeping components independent. We’ll also see how can.Model makes it easy to keep data synchronized between client and server. Finally, we’ll discuss view rendering and how using can.Observe objects in views is particularly useful because of live binding.
Let’s begin by setting up the CanJS library and its supporting cast.
Hello, CanJS!
The first ...
Get Seven Web Frameworks in Seven Weeks now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.