O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

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

The Attach step

The fourth and last step, Attach (depicted in Figure 6.1), is responsible for attaching event handlers (depicted in Figure 6.2) to DOM elements that exist in the rendered web page. For example, in the Products page, we would need to attach event handlers to all the Add To Cart buttons found on the web page. When an Add To Cart button is pressed, the respective product item will be added to the user's shopping cart.

Up to this point, we have laid out the groundwork needed to implement the isomorphic handoff procedure for a given web page. To solidify our understanding of isomorphic handoff, let's consider two specific examples where we implement all four steps of the procedure. First, we will implement the isomorphic handoff ...

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