O'Reilly logo

Hands-On Full Stack Web Development with Aurelia by Erikson Haziz Murrugarra Sifuentes, Diego Jose Arguelles Rojas

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

Preparing for war – Getting the validation plugin

Like other plugins we could have installed, the installation and configuration steps are very similar. If this is the first time you are performing this operation, just carry out the following steps:

If you are using NPM as package manager, use this:

npm install aurelia-validation --save

Alternatively, if you are a JSPM user, use this:

jspm install aurelia-validation

Now, open your main.js file where we had configured our application plugins. In the configure() function, add the new plugin:

export function configure(aurelia) {
    aurelia.use
      .standardConfiguration()
      .developmentLogging()
      .plugin('aurelia-validation'); // <<-- Add this plugin!

Finally, open your aurelia.json file and add the following ...

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