O'Reilly logo

Instant Ember.js Application Development How-to by Marc Bodmer

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

Routing for your application (Medium)

The router in Ember is responsible for changing the state of your application in response to the user's actions. As mentioned earlier, Ember's router is a subclass of the more general purpose StateManager. States are the main features of an Ember application. Through the use of states, we can answer questions such as:

  • Is there a user logged in?
  • What model object is the user currently looking at?
  • Is the user currently editing content on the site?

The state of your application can change when one of the following three reasons occur:

  • The user fires an event from one of your views
  • The user loads the page for the first time or changes the URL
  • The data changes, triggering a linked observer and listener

Ember associates ...

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