O'Reilly logo

Developing an Ember.js Edge by Jamie White, Matthew Beale, Christopher Sansone, Wesley Workman, Bradley Priest

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

Router

In Ember, you are encouraged to store the application state in your browser's URL. By looking at the URL of a page, no matter whether you got there via navigating the app or straight from a bookmark, the application should be able to answer the important questions about what the user is interacting with, what type of object the user is looking at, are they editing or just viewing — this can all be deduced from the current URL.

Up until this point, we've discussed each of the different parts of an Ember application. Now we are going to bring the models, views and controllers all together with the Ember router.

The router binds the browser to the application. It translates user inputs such as browser events (mouse click or touch), and URL ...

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