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.
The first ...