Configure feature after aurelia starts

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

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();
    }
}
7 Likes

Amazing that was it! thanks a lot