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 life cycle of a cog

Figure 9.4 depicts the life cycle of a cog, which starts on the server-side, where we first register the cog. The cog's type must be registered on the server-side so that the cog's associated template(s), along with other static assets can be automatically bundled and made available to the client-side application:

Figure 9.4: The life cycle of a cog

The subsequent steps in the cog life cycle, take place on the client-side. We declare a mount point for the cog, by introducing a div element with a data-component attribute equal to "cog", to indicate that the div element is a mount point for a cog.

The next step, is to ...

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