O'Reilly logo

Seven Web Frameworks in Seven Weeks by Frederic Daoud, Jack Moffitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required