concept application in category aurelia

appears as: application, pplications, Applications, applications, pplication, n application
Aurelia in Action

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

As with the packages you’ve installed already, this command downloads the aurelia-validation plugin from npm and configures it in the aurelia.json file. Once this has been successfully installed, you’ll need to wire up the plugin as part of the application-bootstrap process. As you’ll recall, the main.js ViewModel file exports a configure function that’s called by the Aurelia framework to configure environment settings as part of the application start. This method also allows you to register plugins with the application. Registering a plugin makes the resources within the application, such as exported classes, custom attributes, and binding behaviors, available for import throughout your Aurelia application. With the validation plugin installed, you now need to register it in the configure function, as shown in the following listing.

  • How complicated are the applications you’re trying to build? You don’t want to use a jackhammer to crush a walnut when a nutcracker will do the job. Conversely, you want to make sure that you have a sufficient foundation in place that will support the kind of application you’re trying to build.
  • Routing— SPA users expect your application to behave like a standard website. This means that they should be able to bookmark a URL to get back to it later and navigate between the different states of your application using the browser’s Forward and Back buttons. The Aurelia router solves this problem by allowing you to build URL-based routing into the core of your application. Routing also allows you to take advantage of a technique called deep linking, which allows users to bookmark a URL from deep inside the application (for example, a specific product on an e-commerce site) and return to it later.
  • Figure 6.3. The my-books application extended with the ability to edit books, rate them, and mark them as read. This is the desired state of the application you were working toward in chapter 4.