concept application in category ember

appears as: application, The applications, pplications, The application, n application, Application
Ember.js in Action

This is an excerpt from Manning's book Ember.js in Action.

At the other end of the spectrum are rich internet applications (RIAs), such as Google Maps, Trello, and, to a certain degree, GitHub. These websites aim to define new application types and rival native installed applications, and they render most of their content at the client side. As shown in figure 1.2 (at right), in response to the first request, the server sends a complete application (HTML, CSS, and JavaScript) only once. Subsequent requests return only the data required to display the next page in the application.

The first thing any Ember.js application needs is a namespace that the application lives inside. For your Notes application, you’ll use the namespace Notes.

After your namespace is created, you need to create a router that knows how your application is structured. Using the router isn’t a requirement, but as you’ll see in this book, it greatly simplifies and manages the structure of your entire application. You can think of the router as the glue that holds the application in place and connects different parts of it together.

To write some text onto the page, you’ll override the default application template with custom markup. Add a script tag inside your head tag of index.html. The type of this script tag needs to be “text/x-handlebars” and must include the name (id) of your template, as shown in the following example.

Listing 1.2. Overriding the application template