Using

Using

The bridge is a Aurelia plugin, which means that once you’ve configured it - it will become globally available.

Once you’ve installed it, you can simply use the plugin by configuring it during your setup of Aurelia, typically found in your main.js file.

import { PLATFORM } from 'aurelia-pal';

export function configure(aurelia) {
  aurelia.use
    .standardConfiguration()
    .plugin(PLATFORM.moduleName('@dolittle/aurelia')); // Add Dolittle plugin

  aurelia.start().then(() => aurelia.setRoot(PLATFORM.moduleName('app')));
}