Configure feature after aurelia starts


#1

Hi folks, i want to configure a set of features after aurelia app starts.

I have a feature that has my global components and is beeing configurated before starting my app, but then
when the user login into the app i need to configure a feature or another. depending on the user role.

Can someone help me with example of how i can do this?

Thanks a lot


Multiple app bundles and service registration
Conditionally Load Features dynamically as Webpack chunks after Aurelia starts and without Routing
#2

here’s an example

import { inject, Aurelia, FrameworkConfiguration } from 'aurelia-framework';

@inject(Aurelia)
export class someClass {
    
    constructor(aurelia) {
        this.aurelia = aurelia;
    }

    activate() {
        return new FrameworkConfiguration(this.aurelia)
            .plugin('some-plugin'})
            .feature('some-feature')
            .apply();
    }
}

#3

Amazing that was it! thanks a lot