Fundamentals - App Config & Startup - VI
Installing Plugins:
- Similar to features, 3rd party plugins can be installed.
- The main difference is that a "feature" is provided internally by application, while a plugin is installed from a 3rd party source through package manager.
- To use a plugin
1. Install the package. e.g. jspm install my-plugin
2. configure it in application. e.g. in ES Next
export function configure(aurelia) {
aurelia.use.standardConfiguration( )
.developmentLogging( )
.plugin('my-plugin', pluginConfiguration);
aurelia.start( ).then(( ) => aurelia.setRoot( ));
}
Note: Provide the same name used during installation, to the plugin API
Comments
Post a Comment