1.

How Do We Install Plugins?

Answer»

Installing PLUGINSIf, for example, we want to use animator-css and animator-velocity, we need to INSTALL it first.

C:UsersusernameDesktopaureliaApp>JSPM install aurelia-animator-css

C:UsersusernameDesktopaureliaApp>jspm install aurelia-animator-velocity

In our last chapter we showed you how to use manual CONFIGURATION. We can add our plugins in main.js file.

main.js

export FUNCTION configure(aurelia)
{
aurelia.use
.defaultBindingLanguage()
.defaultResources()
.developmentLogging()
.router()
.history()
.eventAggregator()
.plugin('aurelia-animatorCSS')
.plugin('aurelia-animator-velocity')
aurelia.start().then(() => aurelia.setRoot());
}

Installing Plugins : If, for example, we want to use animator-css and animator-velocity, we need to install it first.

C:UsersusernameDesktopaureliaApp>jspm install aurelia-animator-css

C:UsersusernameDesktopaureliaApp>jspm install aurelia-animator-velocity

In our last chapter we showed you how to use manual configuration. We can add our plugins in main.js file.

main.js

export function configure(aurelia)
{
aurelia.use
.defaultBindingLanguage()
.defaultResources()
.developmentLogging()
.router()
.history()
.eventAggregator()
.plugin('aurelia-animatorCSS')
.plugin('aurelia-animator-velocity')
aurelia.start().then(() => aurelia.setRoot());
}



Discussion

No Comment Found