Configuring your app
// main.ts
import { Aurelia } from 'aurelia-framework';
import { initialState } from './state'; // Import your initial state
export function configure(aurelia: Aurelia) {
aurelia.use
.standardConfiguration()
.feature('resources'); // Assuming you have custom resources in a 'resources' folder
// ... other configuration ...
aurelia.use.plugin('aurelia-store', { initialState }); // Register the plugin and provide the initial state
aurelia.start().then(() => aurelia.setRoot());
}Last updated
Was this helpful?