-
Book Overview & Buying
-
Table Of Contents
Ember.js Cookbook
By :
The Ember run loop is an extremely important part of Ember's internals. The run loop is used to batch, order, and work in a way that's most efficient for the Ember application. In this recipe, we'll create a simple timer and take a look at how the run loop works.
Before we move on to our recipe, we'll need to understand some basics of the Ember run loop.
The Ember
run loop consists of six queues as follows:
sync: This queue consists of binding synchronization jobs.
actions: This queue contains general work and promises.
routerTransitions: This queue contains transition jobs in the router.
render: This queue contains jobs meant to render, usually to update the DOM.
afterRender: This queue is run after all previously scheduled render tasks are completed. This queue is typically used for third-party applications.
destroy: This last queue tears down objects.
These queues don't run all the time. They only run in response to certain...
Change the font size
Change margin width
Change background colour